From 340b146af7603284cfacca1ebb1fc45dd5f70818 Mon Sep 17 00:00:00 2001 From: Garrett Jones Date: Wed, 1 Aug 2018 09:37:28 -0700 Subject: [PATCH] Regenerating proto/client classes --- .../monitoring/v3/GroupServiceGrpc.java | 10 +- .../v2beta1/DetectIntentResponse.java | 253 +- .../DetectIntentResponseOrBuilder.java | 55 +- .../StreamingDetectIntentResponse.java | 253 +- ...treamingDetectIntentResponseOrBuilder.java | 55 +- .../cloud/dialogflow/v2beta1/session.proto | 22 +- .../com/google/monitoring/v3/AlertPolicy.java | 225 +- .../com/google/monitoring/v3/CommonProto.java | 13 +- .../v3/CreateUptimeCheckConfigRequest.java | 28 +- ...eateUptimeCheckConfigRequestOrBuilder.java | 8 +- .../v3/DeleteUptimeCheckConfigRequest.java | 28 +- ...leteUptimeCheckConfigRequestOrBuilder.java | 8 +- .../v3/GetUptimeCheckConfigRequest.java | 28 +- .../GetUptimeCheckConfigRequestOrBuilder.java | 8 +- .../monitoring/v3/GroupResourceType.java | 16 +- .../google/monitoring/v3/InternalChecker.java | 1211 ++++++++++ .../v3/InternalCheckerOrBuilder.java | 103 + ...tMonitoredResourceDescriptorsResponse.java | 4 +- .../monitoring/v3/ListTimeSeriesRequest.java | 71 +- .../v3/ListTimeSeriesRequestOrBuilder.java | 19 +- .../monitoring/v3/ListTimeSeriesResponse.java | 458 ++++ .../v3/ListTimeSeriesResponseOrBuilder.java | 49 + .../v3/ListUptimeCheckConfigsRequest.java | 28 +- ...istUptimeCheckConfigsRequestOrBuilder.java | 8 +- .../v3/ListUptimeCheckConfigsResponse.java | 78 + ...stUptimeCheckConfigsResponseOrBuilder.java | 10 + .../com/google/monitoring/v3/MetricProto.java | 43 +- .../monitoring/v3/MetricServiceProto.java | 158 +- .../v3/NotificationChannelDescriptor.java | 68 +- ...otificationChannelDescriptorOrBuilder.java | 20 +- .../monitoring/v3/NotificationProto.java | 44 +- .../java/com/google/monitoring/v3/Point.java | 192 +- .../google/monitoring/v3/PointOrBuilder.java | 48 +- .../com/google/monitoring/v3/SpanContext.java | 618 +++++ .../monitoring/v3/SpanContextOrBuilder.java | 37 + .../monitoring/v3/SpanContextProto.java | 60 + .../com/google/monitoring/v3/TimeSeries.java | 417 +++- .../monitoring/v3/TimeSeriesOrBuilder.java | 63 +- .../v3/UpdateUptimeCheckConfigRequest.java | 60 +- ...dateUptimeCheckConfigRequestOrBuilder.java | 15 +- .../monitoring/v3/UptimeCheckConfig.java | 2124 +++++------------ .../v3/UptimeCheckConfigOrBuilder.java | 95 +- .../com/google/monitoring/v3/UptimeProto.java | 120 +- .../monitoring/v3/UptimeServiceProto.java | 98 +- .../v3/DroppedLabelsOuterClass.java | 892 +++++++ .../proto/google/monitoring/v3/alert.proto | 17 +- .../google/monitoring/v3/alert_service.proto | 2 +- .../proto/google/monitoring/v3/common.proto | 4 +- .../google/monitoring/v3/dropped_labels.proto | 42 + .../proto/google/monitoring/v3/group.proto | 2 +- .../google/monitoring/v3/group_service.proto | 30 +- .../proto/google/monitoring/v3/metric.proto | 33 +- .../google/monitoring/v3/metric_service.proto | 58 +- .../monitoring/v3/mutation_record.proto | 2 +- .../google/monitoring/v3/notification.proto | 4 +- .../monitoring/v3/notification_service.proto | 2 +- .../google/monitoring/v3/span_context.proto | 43 + .../proto/google/monitoring/v3/uptime.proto | 78 +- .../google/monitoring/v3/uptime_service.proto | 58 +- .../data/v2/stub/BigtableStubSettings.java | 11 + .../v3/AlertPolicyServiceClient.java | 1 - .../v3/AlertPolicyServiceSettings.java | 1 - .../monitoring/v3/GroupServiceClient.java | 3 +- .../monitoring/v3/GroupServiceSettings.java | 1 - .../monitoring/v3/MetricServiceClient.java | 1 - .../monitoring/v3/MetricServiceSettings.java | 1 - .../v3/NotificationChannelServiceClient.java | 1 - .../NotificationChannelServiceSettings.java | 1 - .../v3/UptimeCheckServiceClient.java | 15 +- .../v3/UptimeCheckServiceSettings.java | 1 - .../cloud/monitoring/v3/package-info.java | 2 +- .../stub/AlertPolicyServiceStubSettings.java | 1 - .../v3/stub/GroupServiceStubSettings.java | 1 - .../v3/stub/MetricServiceStubSettings.java | 1 - ...otificationChannelServiceStubSettings.java | 1 - .../stub/UptimeCheckServiceStubSettings.java | 1 - .../v3/UptimeCheckServiceClientTest.java | 23 +- .../pubsub/v1/SubscriptionAdminClient.java | 1 - .../pubsub/v1/SubscriptionAdminSettings.java | 1 - .../cloud/pubsub/v1/TopicAdminClient.java | 1 - .../cloud/pubsub/v1/TopicAdminSettings.java | 1 - .../pubsub/v1/stub/PublisherStubSettings.java | 1 - .../v1/stub/SubscriberStubSettings.java | 1 - .../v1p2beta1/ImageAnnotatorClient.java | 1 + .../v1p2beta1/ImageAnnotatorSettings.java | 1 + .../stub/ImageAnnotatorStubSettings.java | 1 + 86 files changed, 5882 insertions(+), 2790 deletions(-) create mode 100644 google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java create mode 100644 google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalCheckerOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java create mode 100644 google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextProto.java create mode 100644 google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/google/monitoring/v3/DroppedLabelsOuterClass.java create mode 100644 google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/dropped_labels.proto create mode 100644 google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/span_context.proto diff --git a/google-api-grpc/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java b/google-api-grpc/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java index d40e1891cd03..553a4009a9ca 100644 --- a/google-api-grpc/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java +++ b/google-api-grpc/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java @@ -18,7 +18,7 @@ /** *
  * The Group API lets you inspect and manage your
- * [groups](google.monitoring.v3.Group).
+ * [groups](#google.monitoring.v3.Group).
  * A group is a named filter that is used to identify
  * a collection of monitored resources. Groups are typically used to
  * mirror the physical and/or logical topology of the environment.
@@ -289,7 +289,7 @@ public static GroupServiceFutureStub newFutureStub(
   /**
    * 
    * The Group API lets you inspect and manage your
-   * [groups](google.monitoring.v3.Group).
+   * [groups](#google.monitoring.v3.Group).
    * A group is a named filter that is used to identify
    * a collection of monitored resources. Groups are typically used to
    * mirror the physical and/or logical topology of the environment.
@@ -415,7 +415,7 @@ public void listGroupMembers(com.google.monitoring.v3.ListGroupMembersRequest re
   /**
    * 
    * The Group API lets you inspect and manage your
-   * [groups](google.monitoring.v3.Group).
+   * [groups](#google.monitoring.v3.Group).
    * A group is a named filter that is used to identify
    * a collection of monitored resources. Groups are typically used to
    * mirror the physical and/or logical topology of the environment.
@@ -514,7 +514,7 @@ public void listGroupMembers(com.google.monitoring.v3.ListGroupMembersRequest re
   /**
    * 
    * The Group API lets you inspect and manage your
-   * [groups](google.monitoring.v3.Group).
+   * [groups](#google.monitoring.v3.Group).
    * A group is a named filter that is used to identify
    * a collection of monitored resources. Groups are typically used to
    * mirror the physical and/or logical topology of the environment.
@@ -607,7 +607,7 @@ public com.google.monitoring.v3.ListGroupMembersResponse listGroupMembers(com.go
   /**
    * 
    * The Group API lets you inspect and manage your
-   * [groups](google.monitoring.v3.Group).
+   * [groups](#google.monitoring.v3.Group).
    * A group is a named filter that is used to identify
    * a collection of monitored resources. Groups are typically used to
    * mirror the physical and/or logical topology of the environment.
diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponse.java
index f95a9e3695e0..050f012e9127 100644
--- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponse.java
+++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponse.java
@@ -229,12 +229,13 @@ public com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getQueryResultOr
   /**
    * 
    * If Knowledge Connectors are enabled, there could be more than one result
-   * returned for a given query or event and this field will contain all results
-   * except for the top one which is captured in query_result. The alternative
-   * results are ordered by decreasing
+   * returned for a given query or event, and this field will contain all
+   * results except for the top one, which is captured in query_result. The
+   * alternative results are ordered by decreasing
    * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-   * disabled this field will be empty  at which point those additional results
-   * will be surfaced here.
+   * disabled, this field will be empty until multiple responses for regular
+   * intents are supported, at which point those additional results will be
+   * surfaced here.
    * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -245,12 +246,13 @@ public java.util.List getAltern /** *
    * If Knowledge Connectors are enabled, there could be more than one result
-   * returned for a given query or event and this field will contain all results
-   * except for the top one which is captured in query_result. The alternative
-   * results are ordered by decreasing
+   * returned for a given query or event, and this field will contain all
+   * results except for the top one, which is captured in query_result. The
+   * alternative results are ordered by decreasing
    * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-   * disabled this field will be empty  at which point those additional results
-   * will be surfaced here.
+   * disabled, this field will be empty until multiple responses for regular
+   * intents are supported, at which point those additional results will be
+   * surfaced here.
    * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -262,12 +264,13 @@ public java.util.List getAltern /** *
    * If Knowledge Connectors are enabled, there could be more than one result
-   * returned for a given query or event and this field will contain all results
-   * except for the top one which is captured in query_result. The alternative
-   * results are ordered by decreasing
+   * returned for a given query or event, and this field will contain all
+   * results except for the top one, which is captured in query_result. The
+   * alternative results are ordered by decreasing
    * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-   * disabled this field will be empty  at which point those additional results
-   * will be surfaced here.
+   * disabled, this field will be empty until multiple responses for regular
+   * intents are supported, at which point those additional results will be
+   * surfaced here.
    * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -278,12 +281,13 @@ public int getAlternativeQueryResultsCount() { /** *
    * If Knowledge Connectors are enabled, there could be more than one result
-   * returned for a given query or event and this field will contain all results
-   * except for the top one which is captured in query_result. The alternative
-   * results are ordered by decreasing
+   * returned for a given query or event, and this field will contain all
+   * results except for the top one, which is captured in query_result. The
+   * alternative results are ordered by decreasing
    * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-   * disabled this field will be empty  at which point those additional results
-   * will be surfaced here.
+   * disabled, this field will be empty until multiple responses for regular
+   * intents are supported, at which point those additional results will be
+   * surfaced here.
    * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -294,12 +298,13 @@ public com.google.cloud.dialogflow.v2beta1.QueryResult getAlternativeQueryResult /** *
    * If Knowledge Connectors are enabled, there could be more than one result
-   * returned for a given query or event and this field will contain all results
-   * except for the top one which is captured in query_result. The alternative
-   * results are ordered by decreasing
+   * returned for a given query or event, and this field will contain all
+   * results except for the top one, which is captured in query_result. The
+   * alternative results are ordered by decreasing
    * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-   * disabled this field will be empty  at which point those additional results
-   * will be surfaced here.
+   * disabled, this field will be empty until multiple responses for regular
+   * intents are supported, at which point those additional results will be
+   * surfaced here.
    * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -1141,12 +1146,13 @@ private void ensureAlternativeQueryResultsIsMutable() { /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -1161,12 +1167,13 @@ public java.util.List getAltern /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -1181,12 +1188,13 @@ public int getAlternativeQueryResultsCount() { /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -1201,12 +1209,13 @@ public com.google.cloud.dialogflow.v2beta1.QueryResult getAlternativeQueryResult /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -1228,12 +1237,13 @@ public Builder setAlternativeQueryResults( /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -1252,12 +1262,13 @@ public Builder setAlternativeQueryResults( /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -1278,12 +1289,13 @@ public Builder addAlternativeQueryResults(com.google.cloud.dialogflow.v2beta1.Qu /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -1305,12 +1317,13 @@ public Builder addAlternativeQueryResults( /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -1329,12 +1342,13 @@ public Builder addAlternativeQueryResults( /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -1353,12 +1367,13 @@ public Builder addAlternativeQueryResults( /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -1378,12 +1393,13 @@ public Builder addAllAlternativeQueryResults( /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -1401,12 +1417,13 @@ public Builder clearAlternativeQueryResults() { /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -1424,12 +1441,13 @@ public Builder removeAlternativeQueryResults(int index) { /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -1441,12 +1459,13 @@ public com.google.cloud.dialogflow.v2beta1.QueryResult.Builder getAlternativeQue /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -1461,12 +1480,13 @@ public com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getAlternativeQu /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -1482,12 +1502,13 @@ public com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getAlternativeQu /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -1499,12 +1520,13 @@ public com.google.cloud.dialogflow.v2beta1.QueryResult.Builder addAlternativeQue /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -1517,12 +1539,13 @@ public com.google.cloud.dialogflow.v2beta1.QueryResult.Builder addAlternativeQue /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponseOrBuilder.java index 3a1f4c75d797..73545b6e537c 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/DetectIntentResponseOrBuilder.java @@ -58,12 +58,13 @@ public interface DetectIntentResponseOrBuilder extends /** *
    * If Knowledge Connectors are enabled, there could be more than one result
-   * returned for a given query or event and this field will contain all results
-   * except for the top one which is captured in query_result. The alternative
-   * results are ordered by decreasing
+   * returned for a given query or event, and this field will contain all
+   * results except for the top one, which is captured in query_result. The
+   * alternative results are ordered by decreasing
    * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-   * disabled this field will be empty  at which point those additional results
-   * will be surfaced here.
+   * disabled, this field will be empty until multiple responses for regular
+   * intents are supported, at which point those additional results will be
+   * surfaced here.
    * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -73,12 +74,13 @@ public interface DetectIntentResponseOrBuilder extends /** *
    * If Knowledge Connectors are enabled, there could be more than one result
-   * returned for a given query or event and this field will contain all results
-   * except for the top one which is captured in query_result. The alternative
-   * results are ordered by decreasing
+   * returned for a given query or event, and this field will contain all
+   * results except for the top one, which is captured in query_result. The
+   * alternative results are ordered by decreasing
    * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-   * disabled this field will be empty  at which point those additional results
-   * will be surfaced here.
+   * disabled, this field will be empty until multiple responses for regular
+   * intents are supported, at which point those additional results will be
+   * surfaced here.
    * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -87,12 +89,13 @@ public interface DetectIntentResponseOrBuilder extends /** *
    * If Knowledge Connectors are enabled, there could be more than one result
-   * returned for a given query or event and this field will contain all results
-   * except for the top one which is captured in query_result. The alternative
-   * results are ordered by decreasing
+   * returned for a given query or event, and this field will contain all
+   * results except for the top one, which is captured in query_result. The
+   * alternative results are ordered by decreasing
    * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-   * disabled this field will be empty  at which point those additional results
-   * will be surfaced here.
+   * disabled, this field will be empty until multiple responses for regular
+   * intents are supported, at which point those additional results will be
+   * surfaced here.
    * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -101,12 +104,13 @@ public interface DetectIntentResponseOrBuilder extends /** *
    * If Knowledge Connectors are enabled, there could be more than one result
-   * returned for a given query or event and this field will contain all results
-   * except for the top one which is captured in query_result. The alternative
-   * results are ordered by decreasing
+   * returned for a given query or event, and this field will contain all
+   * results except for the top one, which is captured in query_result. The
+   * alternative results are ordered by decreasing
    * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-   * disabled this field will be empty  at which point those additional results
-   * will be surfaced here.
+   * disabled, this field will be empty until multiple responses for regular
+   * intents are supported, at which point those additional results will be
+   * surfaced here.
    * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; @@ -116,12 +120,13 @@ public interface DetectIntentResponseOrBuilder extends /** *
    * If Knowledge Connectors are enabled, there could be more than one result
-   * returned for a given query or event and this field will contain all results
-   * except for the top one which is captured in query_result. The alternative
-   * results are ordered by decreasing
+   * returned for a given query or event, and this field will contain all
+   * results except for the top one, which is captured in query_result. The
+   * alternative results are ordered by decreasing
    * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-   * disabled this field will be empty  at which point those additional results
-   * will be surfaced here.
+   * disabled, this field will be empty until multiple responses for regular
+   * intents are supported, at which point those additional results will be
+   * surfaced here.
    * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 5; diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponse.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponse.java index 211e8be849f3..c2256bd545b2 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponse.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponse.java @@ -287,12 +287,13 @@ public com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getQueryResultOr /** *
    * If Knowledge Connectors are enabled, there could be more than one result
-   * returned for a given query or event and this field will contain all results
-   * except for the top one which is captured in query_result. The alternative
-   * results are ordered by decreasing
+   * returned for a given query or event, and this field will contain all
+   * results except for the top one, which is captured in query_result. The
+   * alternative results are ordered by decreasing
    * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-   * disabled this field will be empty  at which point those additional results
-   * will be surfaced here.
+   * disabled, this field will be empty until multiple responses for regular
+   * intents are supported, at which point those additional results will be
+   * surfaced here.
    * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -303,12 +304,13 @@ public java.util.List getAltern /** *
    * If Knowledge Connectors are enabled, there could be more than one result
-   * returned for a given query or event and this field will contain all results
-   * except for the top one which is captured in query_result. The alternative
-   * results are ordered by decreasing
+   * returned for a given query or event, and this field will contain all
+   * results except for the top one, which is captured in query_result. The
+   * alternative results are ordered by decreasing
    * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-   * disabled this field will be empty  at which point those additional results
-   * will be surfaced here.
+   * disabled, this field will be empty until multiple responses for regular
+   * intents are supported, at which point those additional results will be
+   * surfaced here.
    * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -320,12 +322,13 @@ public java.util.List getAltern /** *
    * If Knowledge Connectors are enabled, there could be more than one result
-   * returned for a given query or event and this field will contain all results
-   * except for the top one which is captured in query_result. The alternative
-   * results are ordered by decreasing
+   * returned for a given query or event, and this field will contain all
+   * results except for the top one, which is captured in query_result. The
+   * alternative results are ordered by decreasing
    * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-   * disabled this field will be empty  at which point those additional results
-   * will be surfaced here.
+   * disabled, this field will be empty until multiple responses for regular
+   * intents are supported, at which point those additional results will be
+   * surfaced here.
    * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -336,12 +339,13 @@ public int getAlternativeQueryResultsCount() { /** *
    * If Knowledge Connectors are enabled, there could be more than one result
-   * returned for a given query or event and this field will contain all results
-   * except for the top one which is captured in query_result. The alternative
-   * results are ordered by decreasing
+   * returned for a given query or event, and this field will contain all
+   * results except for the top one, which is captured in query_result. The
+   * alternative results are ordered by decreasing
    * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-   * disabled this field will be empty  at which point those additional results
-   * will be surfaced here.
+   * disabled, this field will be empty until multiple responses for regular
+   * intents are supported, at which point those additional results will be
+   * surfaced here.
    * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -352,12 +356,13 @@ public com.google.cloud.dialogflow.v2beta1.QueryResult getAlternativeQueryResult /** *
    * If Knowledge Connectors are enabled, there could be more than one result
-   * returned for a given query or event and this field will contain all results
-   * except for the top one which is captured in query_result. The alternative
-   * results are ordered by decreasing
+   * returned for a given query or event, and this field will contain all
+   * results except for the top one, which is captured in query_result. The
+   * alternative results are ordered by decreasing
    * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-   * disabled this field will be empty  at which point those additional results
-   * will be surfaced here.
+   * disabled, this field will be empty until multiple responses for regular
+   * intents are supported, at which point those additional results will be
+   * surfaced here.
    * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -1391,12 +1396,13 @@ private void ensureAlternativeQueryResultsIsMutable() { /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -1411,12 +1417,13 @@ public java.util.List getAltern /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -1431,12 +1438,13 @@ public int getAlternativeQueryResultsCount() { /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -1451,12 +1459,13 @@ public com.google.cloud.dialogflow.v2beta1.QueryResult getAlternativeQueryResult /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -1478,12 +1487,13 @@ public Builder setAlternativeQueryResults( /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -1502,12 +1512,13 @@ public Builder setAlternativeQueryResults( /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -1528,12 +1539,13 @@ public Builder addAlternativeQueryResults(com.google.cloud.dialogflow.v2beta1.Qu /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -1555,12 +1567,13 @@ public Builder addAlternativeQueryResults( /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -1579,12 +1592,13 @@ public Builder addAlternativeQueryResults( /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -1603,12 +1617,13 @@ public Builder addAlternativeQueryResults( /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -1628,12 +1643,13 @@ public Builder addAllAlternativeQueryResults( /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -1651,12 +1667,13 @@ public Builder clearAlternativeQueryResults() { /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -1674,12 +1691,13 @@ public Builder removeAlternativeQueryResults(int index) { /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -1691,12 +1709,13 @@ public com.google.cloud.dialogflow.v2beta1.QueryResult.Builder getAlternativeQue /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -1711,12 +1730,13 @@ public com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getAlternativeQu /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -1732,12 +1752,13 @@ public com.google.cloud.dialogflow.v2beta1.QueryResultOrBuilder getAlternativeQu /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -1749,12 +1770,13 @@ public com.google.cloud.dialogflow.v2beta1.QueryResult.Builder addAlternativeQue /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -1767,12 +1789,13 @@ public com.google.cloud.dialogflow.v2beta1.QueryResult.Builder addAlternativeQue /** *
      * If Knowledge Connectors are enabled, there could be more than one result
-     * returned for a given query or event and this field will contain all results
-     * except for the top one which is captured in query_result. The alternative
-     * results are ordered by decreasing
+     * returned for a given query or event, and this field will contain all
+     * results except for the top one, which is captured in query_result. The
+     * alternative results are ordered by decreasing
      * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-     * disabled this field will be empty  at which point those additional results
-     * will be surfaced here.
+     * disabled, this field will be empty until multiple responses for regular
+     * intents are supported, at which point those additional results will be
+     * surfaced here.
      * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponseOrBuilder.java index 7ca610e951d6..c3c14e400f5a 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingDetectIntentResponseOrBuilder.java @@ -83,12 +83,13 @@ public interface StreamingDetectIntentResponseOrBuilder extends /** *
    * If Knowledge Connectors are enabled, there could be more than one result
-   * returned for a given query or event and this field will contain all results
-   * except for the top one which is captured in query_result. The alternative
-   * results are ordered by decreasing
+   * returned for a given query or event, and this field will contain all
+   * results except for the top one, which is captured in query_result. The
+   * alternative results are ordered by decreasing
    * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-   * disabled this field will be empty  at which point those additional results
-   * will be surfaced here.
+   * disabled, this field will be empty until multiple responses for regular
+   * intents are supported, at which point those additional results will be
+   * surfaced here.
    * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -98,12 +99,13 @@ public interface StreamingDetectIntentResponseOrBuilder extends /** *
    * If Knowledge Connectors are enabled, there could be more than one result
-   * returned for a given query or event and this field will contain all results
-   * except for the top one which is captured in query_result. The alternative
-   * results are ordered by decreasing
+   * returned for a given query or event, and this field will contain all
+   * results except for the top one, which is captured in query_result. The
+   * alternative results are ordered by decreasing
    * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-   * disabled this field will be empty  at which point those additional results
-   * will be surfaced here.
+   * disabled, this field will be empty until multiple responses for regular
+   * intents are supported, at which point those additional results will be
+   * surfaced here.
    * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -112,12 +114,13 @@ public interface StreamingDetectIntentResponseOrBuilder extends /** *
    * If Knowledge Connectors are enabled, there could be more than one result
-   * returned for a given query or event and this field will contain all results
-   * except for the top one which is captured in query_result. The alternative
-   * results are ordered by decreasing
+   * returned for a given query or event, and this field will contain all
+   * results except for the top one, which is captured in query_result. The
+   * alternative results are ordered by decreasing
    * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-   * disabled this field will be empty  at which point those additional results
-   * will be surfaced here.
+   * disabled, this field will be empty until multiple responses for regular
+   * intents are supported, at which point those additional results will be
+   * surfaced here.
    * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -126,12 +129,13 @@ public interface StreamingDetectIntentResponseOrBuilder extends /** *
    * If Knowledge Connectors are enabled, there could be more than one result
-   * returned for a given query or event and this field will contain all results
-   * except for the top one which is captured in query_result. The alternative
-   * results are ordered by decreasing
+   * returned for a given query or event, and this field will contain all
+   * results except for the top one, which is captured in query_result. The
+   * alternative results are ordered by decreasing
    * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-   * disabled this field will be empty  at which point those additional results
-   * will be surfaced here.
+   * disabled, this field will be empty until multiple responses for regular
+   * intents are supported, at which point those additional results will be
+   * surfaced here.
    * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; @@ -141,12 +145,13 @@ public interface StreamingDetectIntentResponseOrBuilder extends /** *
    * If Knowledge Connectors are enabled, there could be more than one result
-   * returned for a given query or event and this field will contain all results
-   * except for the top one which is captured in query_result. The alternative
-   * results are ordered by decreasing
+   * returned for a given query or event, and this field will contain all
+   * results except for the top one, which is captured in query_result. The
+   * alternative results are ordered by decreasing
    * `QueryResult.intent_detection_confidence`. If Knowledge Connectors are
-   * disabled this field will be empty  at which point those additional results
-   * will be surfaced here.
+   * disabled, this field will be empty until multiple responses for regular
+   * intents are supported, at which point those additional results will be
+   * surfaced here.
    * 
* * repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; diff --git a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto index 69cd4868b1c9..35d99dc50c89 100644 --- a/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto +++ b/google-api-grpc/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto @@ -109,12 +109,13 @@ message DetectIntentResponse { QueryResult query_result = 2; // If Knowledge Connectors are enabled, there could be more than one result - // returned for a given query or event and this field will contain all results - // except for the top one which is captured in query_result. The alternative - // results are ordered by decreasing + // returned for a given query or event, and this field will contain all + // results except for the top one, which is captured in query_result. The + // alternative results are ordered by decreasing // `QueryResult.intent_detection_confidence`. If Knowledge Connectors are - // disabled this field will be empty at which point those additional results - // will be surfaced here. + // disabled, this field will be empty until multiple responses for regular + // intents are supported, at which point those additional results will be + // surfaced here. repeated QueryResult alternative_query_results = 5; // Specifies the status of the webhook request. `webhook_status` @@ -426,12 +427,13 @@ message StreamingDetectIntentResponse { QueryResult query_result = 3; // If Knowledge Connectors are enabled, there could be more than one result - // returned for a given query or event and this field will contain all results - // except for the top one which is captured in query_result. The alternative - // results are ordered by decreasing + // returned for a given query or event, and this field will contain all + // results except for the top one, which is captured in query_result. The + // alternative results are ordered by decreasing // `QueryResult.intent_detection_confidence`. If Knowledge Connectors are - // disabled this field will be empty at which point those additional results - // will be surfaced here. + // disabled, this field will be empty until multiple responses for regular + // intents are supported, at which point those additional results will be + // surfaced here. repeated QueryResult alternative_query_results = 7; // Specifies the status of the webhook request. diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java index 3aee57c0520f..a5b1e0196ba4 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java @@ -2448,15 +2448,14 @@ com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilde *
        * The amount of time that a time series must violate the
        * threshold to be considered failing. Currently, only values
-       * that are a multiple of a minute--e.g.  60, 120, or 300
+       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
        * seconds--are supported. If an invalid value is given, an
-       * error will be returned. The `Duration.nanos` field is
-       * ignored. When choosing a duration, it is useful to keep in mind the
-       * frequency of the underlying time series data (which may also be
-       * affected by any alignments specified in the `aggregation` field);
-       * a good duration is long enough so that a single outlier does not
-       * generate spurious alerts, but short enough that unhealthy states
-       * are detected and alerted on quickly.
+       * error will be returned. When choosing a duration, it is useful to
+       * keep in mind the frequency of the underlying time series data
+       * (which may also be affected by any alignments specified in the
+       * `aggregations` field); a good duration is long enough so that a single
+       * outlier does not generate spurious alerts, but short enough that
+       * unhealthy states are detected and alerted on quickly.
        * 
* * .google.protobuf.Duration duration = 6; @@ -2466,15 +2465,14 @@ com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilde *
        * The amount of time that a time series must violate the
        * threshold to be considered failing. Currently, only values
-       * that are a multiple of a minute--e.g.  60, 120, or 300
+       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
        * seconds--are supported. If an invalid value is given, an
-       * error will be returned. The `Duration.nanos` field is
-       * ignored. When choosing a duration, it is useful to keep in mind the
-       * frequency of the underlying time series data (which may also be
-       * affected by any alignments specified in the `aggregation` field);
-       * a good duration is long enough so that a single outlier does not
-       * generate spurious alerts, but short enough that unhealthy states
-       * are detected and alerted on quickly.
+       * error will be returned. When choosing a duration, it is useful to
+       * keep in mind the frequency of the underlying time series data
+       * (which may also be affected by any alignments specified in the
+       * `aggregations` field); a good duration is long enough so that a single
+       * outlier does not generate spurious alerts, but short enough that
+       * unhealthy states are detected and alerted on quickly.
        * 
* * .google.protobuf.Duration duration = 6; @@ -2484,15 +2482,14 @@ com.google.monitoring.v3.AggregationOrBuilder getDenominatorAggregationsOrBuilde *
        * The amount of time that a time series must violate the
        * threshold to be considered failing. Currently, only values
-       * that are a multiple of a minute--e.g.  60, 120, or 300
+       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
        * seconds--are supported. If an invalid value is given, an
-       * error will be returned. The `Duration.nanos` field is
-       * ignored. When choosing a duration, it is useful to keep in mind the
-       * frequency of the underlying time series data (which may also be
-       * affected by any alignments specified in the `aggregation` field);
-       * a good duration is long enough so that a single outlier does not
-       * generate spurious alerts, but short enough that unhealthy states
-       * are detected and alerted on quickly.
+       * error will be returned. When choosing a duration, it is useful to
+       * keep in mind the frequency of the underlying time series data
+       * (which may also be affected by any alignments specified in the
+       * `aggregations` field); a good duration is long enough so that a single
+       * outlier does not generate spurious alerts, but short enough that
+       * unhealthy states are detected and alerted on quickly.
        * 
* * .google.protobuf.Duration duration = 6; @@ -3084,15 +3081,14 @@ public double getThresholdValue() { *
        * The amount of time that a time series must violate the
        * threshold to be considered failing. Currently, only values
-       * that are a multiple of a minute--e.g.  60, 120, or 300
+       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
        * seconds--are supported. If an invalid value is given, an
-       * error will be returned. The `Duration.nanos` field is
-       * ignored. When choosing a duration, it is useful to keep in mind the
-       * frequency of the underlying time series data (which may also be
-       * affected by any alignments specified in the `aggregation` field);
-       * a good duration is long enough so that a single outlier does not
-       * generate spurious alerts, but short enough that unhealthy states
-       * are detected and alerted on quickly.
+       * error will be returned. When choosing a duration, it is useful to
+       * keep in mind the frequency of the underlying time series data
+       * (which may also be affected by any alignments specified in the
+       * `aggregations` field); a good duration is long enough so that a single
+       * outlier does not generate spurious alerts, but short enough that
+       * unhealthy states are detected and alerted on quickly.
        * 
* * .google.protobuf.Duration duration = 6; @@ -3104,15 +3100,14 @@ public boolean hasDuration() { *
        * The amount of time that a time series must violate the
        * threshold to be considered failing. Currently, only values
-       * that are a multiple of a minute--e.g.  60, 120, or 300
+       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
        * seconds--are supported. If an invalid value is given, an
-       * error will be returned. The `Duration.nanos` field is
-       * ignored. When choosing a duration, it is useful to keep in mind the
-       * frequency of the underlying time series data (which may also be
-       * affected by any alignments specified in the `aggregation` field);
-       * a good duration is long enough so that a single outlier does not
-       * generate spurious alerts, but short enough that unhealthy states
-       * are detected and alerted on quickly.
+       * error will be returned. When choosing a duration, it is useful to
+       * keep in mind the frequency of the underlying time series data
+       * (which may also be affected by any alignments specified in the
+       * `aggregations` field); a good duration is long enough so that a single
+       * outlier does not generate spurious alerts, but short enough that
+       * unhealthy states are detected and alerted on quickly.
        * 
* * .google.protobuf.Duration duration = 6; @@ -3124,15 +3119,14 @@ public com.google.protobuf.Duration getDuration() { *
        * The amount of time that a time series must violate the
        * threshold to be considered failing. Currently, only values
-       * that are a multiple of a minute--e.g.  60, 120, or 300
+       * that are a multiple of a minute--e.g., 0, 60, 120, or 300
        * seconds--are supported. If an invalid value is given, an
-       * error will be returned. The `Duration.nanos` field is
-       * ignored. When choosing a duration, it is useful to keep in mind the
-       * frequency of the underlying time series data (which may also be
-       * affected by any alignments specified in the `aggregation` field);
-       * a good duration is long enough so that a single outlier does not
-       * generate spurious alerts, but short enough that unhealthy states
-       * are detected and alerted on quickly.
+       * error will be returned. When choosing a duration, it is useful to
+       * keep in mind the frequency of the underlying time series data
+       * (which may also be affected by any alignments specified in the
+       * `aggregations` field); a good duration is long enough so that a single
+       * outlier does not generate spurious alerts, but short enough that
+       * unhealthy states are detected and alerted on quickly.
        * 
* * .google.protobuf.Duration duration = 6; @@ -5129,15 +5123,14 @@ public Builder clearThresholdValue() { *
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
-         * that are a multiple of a minute--e.g.  60, 120, or 300
+         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
          * seconds--are supported. If an invalid value is given, an
-         * error will be returned. The `Duration.nanos` field is
-         * ignored. When choosing a duration, it is useful to keep in mind the
-         * frequency of the underlying time series data (which may also be
-         * affected by any alignments specified in the `aggregation` field);
-         * a good duration is long enough so that a single outlier does not
-         * generate spurious alerts, but short enough that unhealthy states
-         * are detected and alerted on quickly.
+         * error will be returned. When choosing a duration, it is useful to
+         * keep in mind the frequency of the underlying time series data
+         * (which may also be affected by any alignments specified in the
+         * `aggregations` field); a good duration is long enough so that a single
+         * outlier does not generate spurious alerts, but short enough that
+         * unhealthy states are detected and alerted on quickly.
          * 
* * .google.protobuf.Duration duration = 6; @@ -5149,15 +5142,14 @@ public boolean hasDuration() { *
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
-         * that are a multiple of a minute--e.g.  60, 120, or 300
+         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
          * seconds--are supported. If an invalid value is given, an
-         * error will be returned. The `Duration.nanos` field is
-         * ignored. When choosing a duration, it is useful to keep in mind the
-         * frequency of the underlying time series data (which may also be
-         * affected by any alignments specified in the `aggregation` field);
-         * a good duration is long enough so that a single outlier does not
-         * generate spurious alerts, but short enough that unhealthy states
-         * are detected and alerted on quickly.
+         * error will be returned. When choosing a duration, it is useful to
+         * keep in mind the frequency of the underlying time series data
+         * (which may also be affected by any alignments specified in the
+         * `aggregations` field); a good duration is long enough so that a single
+         * outlier does not generate spurious alerts, but short enough that
+         * unhealthy states are detected and alerted on quickly.
          * 
* * .google.protobuf.Duration duration = 6; @@ -5173,15 +5165,14 @@ public com.google.protobuf.Duration getDuration() { *
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
-         * that are a multiple of a minute--e.g.  60, 120, or 300
+         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
          * seconds--are supported. If an invalid value is given, an
-         * error will be returned. The `Duration.nanos` field is
-         * ignored. When choosing a duration, it is useful to keep in mind the
-         * frequency of the underlying time series data (which may also be
-         * affected by any alignments specified in the `aggregation` field);
-         * a good duration is long enough so that a single outlier does not
-         * generate spurious alerts, but short enough that unhealthy states
-         * are detected and alerted on quickly.
+         * error will be returned. When choosing a duration, it is useful to
+         * keep in mind the frequency of the underlying time series data
+         * (which may also be affected by any alignments specified in the
+         * `aggregations` field); a good duration is long enough so that a single
+         * outlier does not generate spurious alerts, but short enough that
+         * unhealthy states are detected and alerted on quickly.
          * 
* * .google.protobuf.Duration duration = 6; @@ -5203,15 +5194,14 @@ public Builder setDuration(com.google.protobuf.Duration value) { *
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
-         * that are a multiple of a minute--e.g.  60, 120, or 300
+         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
          * seconds--are supported. If an invalid value is given, an
-         * error will be returned. The `Duration.nanos` field is
-         * ignored. When choosing a duration, it is useful to keep in mind the
-         * frequency of the underlying time series data (which may also be
-         * affected by any alignments specified in the `aggregation` field);
-         * a good duration is long enough so that a single outlier does not
-         * generate spurious alerts, but short enough that unhealthy states
-         * are detected and alerted on quickly.
+         * error will be returned. When choosing a duration, it is useful to
+         * keep in mind the frequency of the underlying time series data
+         * (which may also be affected by any alignments specified in the
+         * `aggregations` field); a good duration is long enough so that a single
+         * outlier does not generate spurious alerts, but short enough that
+         * unhealthy states are detected and alerted on quickly.
          * 
* * .google.protobuf.Duration duration = 6; @@ -5231,15 +5221,14 @@ public Builder setDuration( *
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
-         * that are a multiple of a minute--e.g.  60, 120, or 300
+         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
          * seconds--are supported. If an invalid value is given, an
-         * error will be returned. The `Duration.nanos` field is
-         * ignored. When choosing a duration, it is useful to keep in mind the
-         * frequency of the underlying time series data (which may also be
-         * affected by any alignments specified in the `aggregation` field);
-         * a good duration is long enough so that a single outlier does not
-         * generate spurious alerts, but short enough that unhealthy states
-         * are detected and alerted on quickly.
+         * error will be returned. When choosing a duration, it is useful to
+         * keep in mind the frequency of the underlying time series data
+         * (which may also be affected by any alignments specified in the
+         * `aggregations` field); a good duration is long enough so that a single
+         * outlier does not generate spurious alerts, but short enough that
+         * unhealthy states are detected and alerted on quickly.
          * 
* * .google.protobuf.Duration duration = 6; @@ -5263,15 +5252,14 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { *
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
-         * that are a multiple of a minute--e.g.  60, 120, or 300
+         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
          * seconds--are supported. If an invalid value is given, an
-         * error will be returned. The `Duration.nanos` field is
-         * ignored. When choosing a duration, it is useful to keep in mind the
-         * frequency of the underlying time series data (which may also be
-         * affected by any alignments specified in the `aggregation` field);
-         * a good duration is long enough so that a single outlier does not
-         * generate spurious alerts, but short enough that unhealthy states
-         * are detected and alerted on quickly.
+         * error will be returned. When choosing a duration, it is useful to
+         * keep in mind the frequency of the underlying time series data
+         * (which may also be affected by any alignments specified in the
+         * `aggregations` field); a good duration is long enough so that a single
+         * outlier does not generate spurious alerts, but short enough that
+         * unhealthy states are detected and alerted on quickly.
          * 
* * .google.protobuf.Duration duration = 6; @@ -5291,15 +5279,14 @@ public Builder clearDuration() { *
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
-         * that are a multiple of a minute--e.g.  60, 120, or 300
+         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
          * seconds--are supported. If an invalid value is given, an
-         * error will be returned. The `Duration.nanos` field is
-         * ignored. When choosing a duration, it is useful to keep in mind the
-         * frequency of the underlying time series data (which may also be
-         * affected by any alignments specified in the `aggregation` field);
-         * a good duration is long enough so that a single outlier does not
-         * generate spurious alerts, but short enough that unhealthy states
-         * are detected and alerted on quickly.
+         * error will be returned. When choosing a duration, it is useful to
+         * keep in mind the frequency of the underlying time series data
+         * (which may also be affected by any alignments specified in the
+         * `aggregations` field); a good duration is long enough so that a single
+         * outlier does not generate spurious alerts, but short enough that
+         * unhealthy states are detected and alerted on quickly.
          * 
* * .google.protobuf.Duration duration = 6; @@ -5313,15 +5300,14 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() { *
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
-         * that are a multiple of a minute--e.g.  60, 120, or 300
+         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
          * seconds--are supported. If an invalid value is given, an
-         * error will be returned. The `Duration.nanos` field is
-         * ignored. When choosing a duration, it is useful to keep in mind the
-         * frequency of the underlying time series data (which may also be
-         * affected by any alignments specified in the `aggregation` field);
-         * a good duration is long enough so that a single outlier does not
-         * generate spurious alerts, but short enough that unhealthy states
-         * are detected and alerted on quickly.
+         * error will be returned. When choosing a duration, it is useful to
+         * keep in mind the frequency of the underlying time series data
+         * (which may also be affected by any alignments specified in the
+         * `aggregations` field); a good duration is long enough so that a single
+         * outlier does not generate spurious alerts, but short enough that
+         * unhealthy states are detected and alerted on quickly.
          * 
* * .google.protobuf.Duration duration = 6; @@ -5338,15 +5324,14 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { *
          * The amount of time that a time series must violate the
          * threshold to be considered failing. Currently, only values
-         * that are a multiple of a minute--e.g.  60, 120, or 300
+         * that are a multiple of a minute--e.g., 0, 60, 120, or 300
          * seconds--are supported. If an invalid value is given, an
-         * error will be returned. The `Duration.nanos` field is
-         * ignored. When choosing a duration, it is useful to keep in mind the
-         * frequency of the underlying time series data (which may also be
-         * affected by any alignments specified in the `aggregation` field);
-         * a good duration is long enough so that a single outlier does not
-         * generate spurious alerts, but short enough that unhealthy states
-         * are detected and alerted on quickly.
+         * error will be returned. When choosing a duration, it is useful to
+         * keep in mind the frequency of the underlying time series data
+         * (which may also be affected by any alignments specified in the
+         * `aggregations` field); a good duration is long enough so that a single
+         * outlier does not generate spurious alerts, but short enough that
+         * unhealthy states are detected and alerted on quickly.
          * 
* * .google.protobuf.Duration duration = 6; diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CommonProto.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CommonProto.java index 18cc10e0906b..7a24506174f9 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CommonProto.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CommonProto.java @@ -77,13 +77,14 @@ public static void registerAllExtensions( "SON_UNSPECIFIED\020\000\022\021\n\rCOMPARISON_GT\020\001\022\021\n\r" + "COMPARISON_GE\020\002\022\021\n\rCOMPARISON_LT\020\003\022\021\n\rCO" + "MPARISON_LE\020\004\022\021\n\rCOMPARISON_EQ\020\005\022\021\n\rCOMP" + - "ARISON_NE\020\006*]\n\013ServiceTier\022\034\n\030SERVICE_TI" + + "ARISON_NE\020\006*a\n\013ServiceTier\022\034\n\030SERVICE_TI" + "ER_UNSPECIFIED\020\000\022\026\n\022SERVICE_TIER_BASIC\020\001" + - "\022\030\n\024SERVICE_TIER_PREMIUM\020\002B\243\001\n\030com.googl" + - "e.monitoring.v3B\013CommonProtoP\001Z>google.g" + - "olang.org/genproto/googleapis/monitoring" + - "/v3;monitoring\252\002\032Google.Cloud.Monitoring" + - ".V3\312\002\032Google\\Cloud\\Monitoring\\V3b\006proto3" + "\022\030\n\024SERVICE_TIER_PREMIUM\020\002\032\002\030\001B\243\001\n\030com.g" + + "oogle.monitoring.v3B\013CommonProtoP\001Z>goog" + + "le.golang.org/genproto/googleapis/monito" + + "ring/v3;monitoring\252\002\032Google.Cloud.Monito" + + "ring.V3\312\002\032Google\\Cloud\\Monitoring\\V3b\006pr" + + "oto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java index 2e0212c87497..30d89c9193a2 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequest.java @@ -102,8 +102,8 @@ private CreateUptimeCheckConfigRequest( private volatile java.lang.Object parent_; /** *
-   * The project in which to create the uptime check. The format is:
-   *   `projects/[PROJECT_ID]`.
+   * The project in which to create the uptime check. The format
+   *   is `projects/[PROJECT_ID]`.
    * 
* * string parent = 1; @@ -122,8 +122,8 @@ public java.lang.String getParent() { } /** *
-   * The project in which to create the uptime check. The format is:
-   *   `projects/[PROJECT_ID]`.
+   * The project in which to create the uptime check. The format
+   *   is `projects/[PROJECT_ID]`.
    * 
* * string parent = 1; @@ -515,8 +515,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** *
-     * The project in which to create the uptime check. The format is:
-     *   `projects/[PROJECT_ID]`.
+     * The project in which to create the uptime check. The format
+     *   is `projects/[PROJECT_ID]`.
      * 
* * string parent = 1; @@ -535,8 +535,8 @@ public java.lang.String getParent() { } /** *
-     * The project in which to create the uptime check. The format is:
-     *   `projects/[PROJECT_ID]`.
+     * The project in which to create the uptime check. The format
+     *   is `projects/[PROJECT_ID]`.
      * 
* * string parent = 1; @@ -556,8 +556,8 @@ public java.lang.String getParent() { } /** *
-     * The project in which to create the uptime check. The format is:
-     *   `projects/[PROJECT_ID]`.
+     * The project in which to create the uptime check. The format
+     *   is `projects/[PROJECT_ID]`.
      * 
* * string parent = 1; @@ -574,8 +574,8 @@ public Builder setParent( } /** *
-     * The project in which to create the uptime check. The format is:
-     *   `projects/[PROJECT_ID]`.
+     * The project in which to create the uptime check. The format
+     *   is `projects/[PROJECT_ID]`.
      * 
* * string parent = 1; @@ -588,8 +588,8 @@ public Builder clearParent() { } /** *
-     * The project in which to create the uptime check. The format is:
-     *   `projects/[PROJECT_ID]`.
+     * The project in which to create the uptime check. The format
+     *   is `projects/[PROJECT_ID]`.
      * 
* * string parent = 1; diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java index 6523ccc2bcd4..dd48645e8506 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateUptimeCheckConfigRequestOrBuilder.java @@ -9,8 +9,8 @@ public interface CreateUptimeCheckConfigRequestOrBuilder extends /** *
-   * The project in which to create the uptime check. The format is:
-   *   `projects/[PROJECT_ID]`.
+   * The project in which to create the uptime check. The format
+   *   is `projects/[PROJECT_ID]`.
    * 
* * string parent = 1; @@ -18,8 +18,8 @@ public interface CreateUptimeCheckConfigRequestOrBuilder extends java.lang.String getParent(); /** *
-   * The project in which to create the uptime check. The format is:
-   *   `projects/[PROJECT_ID]`.
+   * The project in which to create the uptime check. The format
+   *   is `projects/[PROJECT_ID]`.
    * 
* * string parent = 1; diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java index df010f795a2c..545bfa7c288e 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequest.java @@ -89,8 +89,8 @@ private DeleteUptimeCheckConfigRequest( private volatile java.lang.Object name_; /** *
-   * The uptime check configuration to delete. The format is
-   *   `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+   * The uptime check configuration to delete. The format
+   *   is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
    * 
* * string name = 1; @@ -109,8 +109,8 @@ public java.lang.String getName() { } /** *
-   * The uptime check configuration to delete. The format is
-   *   `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+   * The uptime check configuration to delete. The format
+   *   is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
    * 
* * string name = 1; @@ -439,8 +439,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** *
-     * The uptime check configuration to delete. The format is
-     *   `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+     * The uptime check configuration to delete. The format
+     *   is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
      * 
* * string name = 1; @@ -459,8 +459,8 @@ public java.lang.String getName() { } /** *
-     * The uptime check configuration to delete. The format is
-     *   `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+     * The uptime check configuration to delete. The format
+     *   is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
      * 
* * string name = 1; @@ -480,8 +480,8 @@ public java.lang.String getName() { } /** *
-     * The uptime check configuration to delete. The format is
-     *   `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+     * The uptime check configuration to delete. The format
+     *   is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
      * 
* * string name = 1; @@ -498,8 +498,8 @@ public Builder setName( } /** *
-     * The uptime check configuration to delete. The format is
-     *   `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+     * The uptime check configuration to delete. The format
+     *   is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
      * 
* * string name = 1; @@ -512,8 +512,8 @@ public Builder clearName() { } /** *
-     * The uptime check configuration to delete. The format is
-     *   `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+     * The uptime check configuration to delete. The format
+     *   is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
      * 
* * string name = 1; diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java index e8b1b1556508..95edffffe437 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/DeleteUptimeCheckConfigRequestOrBuilder.java @@ -9,8 +9,8 @@ public interface DeleteUptimeCheckConfigRequestOrBuilder extends /** *
-   * The uptime check configuration to delete. The format is
-   *   `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+   * The uptime check configuration to delete. The format
+   *   is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
    * 
* * string name = 1; @@ -18,8 +18,8 @@ public interface DeleteUptimeCheckConfigRequestOrBuilder extends java.lang.String getName(); /** *
-   * The uptime check configuration to delete. The format is
-   *   `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+   * The uptime check configuration to delete. The format
+   *   is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
    * 
* * string name = 1; diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java index d488272cea96..21f6823f5d59 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequest.java @@ -89,8 +89,8 @@ private GetUptimeCheckConfigRequest( private volatile java.lang.Object name_; /** *
-   * The uptime check configuration to retrieve. The format is
-   *   `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+   * The uptime check configuration to retrieve. The format
+   *   is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
    * 
* * string name = 1; @@ -109,8 +109,8 @@ public java.lang.String getName() { } /** *
-   * The uptime check configuration to retrieve. The format is
-   *   `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+   * The uptime check configuration to retrieve. The format
+   *   is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
    * 
* * string name = 1; @@ -439,8 +439,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** *
-     * The uptime check configuration to retrieve. The format is
-     *   `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+     * The uptime check configuration to retrieve. The format
+     *   is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
      * 
* * string name = 1; @@ -459,8 +459,8 @@ public java.lang.String getName() { } /** *
-     * The uptime check configuration to retrieve. The format is
-     *   `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+     * The uptime check configuration to retrieve. The format
+     *   is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
      * 
* * string name = 1; @@ -480,8 +480,8 @@ public java.lang.String getName() { } /** *
-     * The uptime check configuration to retrieve. The format is
-     *   `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+     * The uptime check configuration to retrieve. The format
+     *   is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
      * 
* * string name = 1; @@ -498,8 +498,8 @@ public Builder setName( } /** *
-     * The uptime check configuration to retrieve. The format is
-     *   `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+     * The uptime check configuration to retrieve. The format
+     *   is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
      * 
* * string name = 1; @@ -512,8 +512,8 @@ public Builder clearName() { } /** *
-     * The uptime check configuration to retrieve. The format is
-     *   `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+     * The uptime check configuration to retrieve. The format
+     *   is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
      * 
* * string name = 1; diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java index 36b23dd76269..0afb36ce8037 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GetUptimeCheckConfigRequestOrBuilder.java @@ -9,8 +9,8 @@ public interface GetUptimeCheckConfigRequestOrBuilder extends /** *
-   * The uptime check configuration to retrieve. The format is
-   *   `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+   * The uptime check configuration to retrieve. The format
+   *   is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
    * 
* * string name = 1; @@ -18,8 +18,8 @@ public interface GetUptimeCheckConfigRequestOrBuilder extends java.lang.String getName(); /** *
-   * The uptime check configuration to retrieve. The format is
-   *   `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
+   * The uptime check configuration to retrieve. The format
+   *   is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
    * 
* * string name = 1; diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupResourceType.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupResourceType.java index f8866c9ab7ac..3f9a76c1773c 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupResourceType.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupResourceType.java @@ -6,8 +6,10 @@ /** *
  * The supported resource types that can be used as values of
- * group_resource.resource_type. gae_app and uptime_url are not allowed
- * because group checks on App Engine modules and URLs are not allowed.
+ * `group_resource.resource_type`.
+ * `INSTANCE` includes `gce_instance` and `aws_ec2_instance` resource types.
+ * The resource types `gae_app` and `uptime_url` are not valid here because
+ * group checks on App Engine modules and URLs are not allowed.
  * 
* * Protobuf enum {@code google.monitoring.v3.GroupResourceType} @@ -24,7 +26,8 @@ public enum GroupResourceType RESOURCE_TYPE_UNSPECIFIED(0), /** *
-   * A group of instances (could be either GCE or AWS_EC2).
+   * A group of instances from Google Cloud Platform (GCP) or
+   * Amazon Web Services (AWS).
    * 
* * INSTANCE = 1; @@ -32,7 +35,7 @@ public enum GroupResourceType INSTANCE(1), /** *
-   * A group of AWS load balancers.
+   * A group of Amazon ELB load balancers.
    * 
* * AWS_ELB_LOAD_BALANCER = 2; @@ -51,7 +54,8 @@ public enum GroupResourceType public static final int RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; /** *
-   * A group of instances (could be either GCE or AWS_EC2).
+   * A group of instances from Google Cloud Platform (GCP) or
+   * Amazon Web Services (AWS).
    * 
* * INSTANCE = 1; @@ -59,7 +63,7 @@ public enum GroupResourceType public static final int INSTANCE_VALUE = 1; /** *
-   * A group of AWS load balancers.
+   * A group of Amazon ELB load balancers.
    * 
* * AWS_ELB_LOAD_BALANCER = 2; diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java new file mode 100644 index 000000000000..0f143b940dc5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalChecker.java @@ -0,0 +1,1211 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/uptime.proto + +package com.google.monitoring.v3; + +/** + *
+ * Nimbus InternalCheckers.
+ * 
+ * + * Protobuf type {@code google.monitoring.v3.InternalChecker} + */ +public final class InternalChecker extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.monitoring.v3.InternalChecker) + InternalCheckerOrBuilder { +private static final long serialVersionUID = 0L; + // Use InternalChecker.newBuilder() to construct. + private InternalChecker(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private InternalChecker() { + projectId_ = ""; + network_ = ""; + gcpZone_ = ""; + checkerId_ = ""; + displayName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InternalChecker( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + network_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + gcpZone_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + checkerId_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.UptimeProto.internal_static_google_monitoring_v3_InternalChecker_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_InternalChecker_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.v3.InternalChecker.class, com.google.monitoring.v3.InternalChecker.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+   * The GCP project ID. Not necessarily the same as the project_id for the
+   * config.
+   * 
+ * + * string project_id = 1; + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + 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(); + projectId_ = s; + return s; + } + } + /** + *
+   * The GCP project ID. Not necessarily the same as the project_id for the
+   * config.
+   * 
+ * + * string project_id = 1; + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 2; + private volatile java.lang.Object network_; + /** + *
+   * The internal network to perform this uptime check on.
+   * 
+ * + * string network = 2; + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + 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(); + network_ = s; + return s; + } + } + /** + *
+   * The internal network to perform this uptime check on.
+   * 
+ * + * string network = 2; + */ + public com.google.protobuf.ByteString + getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCP_ZONE_FIELD_NUMBER = 3; + private volatile java.lang.Object gcpZone_; + /** + *
+   * The GCP zone the uptime check should egress from. Only respected for
+   * internal uptime checks, where internal_network is specified.
+   * 
+ * + * string gcp_zone = 3; + */ + public java.lang.String getGcpZone() { + java.lang.Object ref = gcpZone_; + 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(); + gcpZone_ = s; + return s; + } + } + /** + *
+   * The GCP zone the uptime check should egress from. Only respected for
+   * internal uptime checks, where internal_network is specified.
+   * 
+ * + * string gcp_zone = 3; + */ + public com.google.protobuf.ByteString + getGcpZoneBytes() { + java.lang.Object ref = gcpZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gcpZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHECKER_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object checkerId_; + /** + *
+   * The checker ID.
+   * 
+ * + * string checker_id = 4; + */ + public java.lang.String getCheckerId() { + java.lang.Object ref = checkerId_; + 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(); + checkerId_ = s; + return s; + } + } + /** + *
+   * The checker ID.
+   * 
+ * + * string checker_id = 4; + */ + public com.google.protobuf.ByteString + getCheckerIdBytes() { + java.lang.Object ref = checkerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + checkerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object displayName_; + /** + *
+   * The checker's human-readable name.
+   * 
+ * + * string display_name = 5; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + *
+   * The checker's human-readable name.
+   * 
+ * + * string display_name = 5; + */ + 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; + } + } + + 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 (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getNetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, network_); + } + if (!getGcpZoneBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, gcpZone_); + } + if (!getCheckerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, checkerId_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getNetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, network_); + } + if (!getGcpZoneBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, gcpZone_); + } + if (!getCheckerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, checkerId_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); + } + 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.InternalChecker)) { + return super.equals(obj); + } + com.google.monitoring.v3.InternalChecker other = (com.google.monitoring.v3.InternalChecker) obj; + + boolean result = true; + result = result && getProjectId() + .equals(other.getProjectId()); + result = result && getNetwork() + .equals(other.getNetwork()); + result = result && getGcpZone() + .equals(other.getGcpZone()); + result = result && getCheckerId() + .equals(other.getCheckerId()); + result = result && getDisplayName() + .equals(other.getDisplayName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + GCP_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getGcpZone().hashCode(); + hash = (37 * hash) + CHECKER_ID_FIELD_NUMBER; + hash = (53 * hash) + getCheckerId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.v3.InternalChecker parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.v3.InternalChecker 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.InternalChecker parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.v3.InternalChecker 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.InternalChecker parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.v3.InternalChecker parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.monitoring.v3.InternalChecker parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.monitoring.v3.InternalChecker 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.InternalChecker parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.monitoring.v3.InternalChecker 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.InternalChecker parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.monitoring.v3.InternalChecker 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.InternalChecker 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; + } + /** + *
+   * Nimbus InternalCheckers.
+   * 
+ * + * Protobuf type {@code google.monitoring.v3.InternalChecker} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.monitoring.v3.InternalChecker) + com.google.monitoring.v3.InternalCheckerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_InternalChecker_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_InternalChecker_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.v3.InternalChecker.class, com.google.monitoring.v3.InternalChecker.Builder.class); + } + + // Construct using com.google.monitoring.v3.InternalChecker.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + network_ = ""; + + gcpZone_ = ""; + + checkerId_ = ""; + + displayName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_InternalChecker_descriptor; + } + + @java.lang.Override + public com.google.monitoring.v3.InternalChecker getDefaultInstanceForType() { + return com.google.monitoring.v3.InternalChecker.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.v3.InternalChecker build() { + com.google.monitoring.v3.InternalChecker result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.monitoring.v3.InternalChecker buildPartial() { + com.google.monitoring.v3.InternalChecker result = new com.google.monitoring.v3.InternalChecker(this); + result.projectId_ = projectId_; + result.network_ = network_; + result.gcpZone_ = gcpZone_; + result.checkerId_ = checkerId_; + result.displayName_ = displayName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.monitoring.v3.InternalChecker) { + return mergeFrom((com.google.monitoring.v3.InternalChecker)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.v3.InternalChecker other) { + if (other == com.google.monitoring.v3.InternalChecker.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + onChanged(); + } + if (!other.getGcpZone().isEmpty()) { + gcpZone_ = other.gcpZone_; + onChanged(); + } + if (!other.getCheckerId().isEmpty()) { + checkerId_ = other.checkerId_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.monitoring.v3.InternalChecker parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.monitoring.v3.InternalChecker) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object projectId_ = ""; + /** + *
+     * The GCP project ID. Not necessarily the same as the project_id for the
+     * config.
+     * 
+ * + * string project_id = 1; + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The GCP project ID. Not necessarily the same as the project_id for the
+     * config.
+     * 
+ * + * string project_id = 1; + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The GCP project ID. Not necessarily the same as the project_id for the
+     * config.
+     * 
+ * + * string project_id = 1; + */ + public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+     * The GCP project ID. Not necessarily the same as the project_id for the
+     * config.
+     * 
+ * + * string project_id = 1; + */ + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+     * The GCP project ID. Not necessarily the same as the project_id for the
+     * config.
+     * 
+ * + * string project_id = 1; + */ + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + /** + *
+     * The internal network to perform this uptime check on.
+     * 
+ * + * string network = 2; + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The internal network to perform this uptime check on.
+     * 
+ * + * string network = 2; + */ + public com.google.protobuf.ByteString + getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The internal network to perform this uptime check on.
+     * 
+ * + * string network = 2; + */ + public Builder setNetwork( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + network_ = value; + onChanged(); + return this; + } + /** + *
+     * The internal network to perform this uptime check on.
+     * 
+ * + * string network = 2; + */ + public Builder clearNetwork() { + + network_ = getDefaultInstance().getNetwork(); + onChanged(); + return this; + } + /** + *
+     * The internal network to perform this uptime check on.
+     * 
+ * + * string network = 2; + */ + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + network_ = value; + onChanged(); + return this; + } + + private java.lang.Object gcpZone_ = ""; + /** + *
+     * The GCP zone the uptime check should egress from. Only respected for
+     * internal uptime checks, where internal_network is specified.
+     * 
+ * + * string gcp_zone = 3; + */ + public java.lang.String getGcpZone() { + java.lang.Object ref = gcpZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The GCP zone the uptime check should egress from. Only respected for
+     * internal uptime checks, where internal_network is specified.
+     * 
+ * + * string gcp_zone = 3; + */ + public com.google.protobuf.ByteString + getGcpZoneBytes() { + java.lang.Object ref = gcpZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + gcpZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The GCP zone the uptime check should egress from. Only respected for
+     * internal uptime checks, where internal_network is specified.
+     * 
+ * + * string gcp_zone = 3; + */ + public Builder setGcpZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + gcpZone_ = value; + onChanged(); + return this; + } + /** + *
+     * The GCP zone the uptime check should egress from. Only respected for
+     * internal uptime checks, where internal_network is specified.
+     * 
+ * + * string gcp_zone = 3; + */ + public Builder clearGcpZone() { + + gcpZone_ = getDefaultInstance().getGcpZone(); + onChanged(); + return this; + } + /** + *
+     * The GCP zone the uptime check should egress from. Only respected for
+     * internal uptime checks, where internal_network is specified.
+     * 
+ * + * string gcp_zone = 3; + */ + public Builder setGcpZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + gcpZone_ = value; + onChanged(); + return this; + } + + private java.lang.Object checkerId_ = ""; + /** + *
+     * The checker ID.
+     * 
+ * + * string checker_id = 4; + */ + public java.lang.String getCheckerId() { + java.lang.Object ref = checkerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + checkerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The checker ID.
+     * 
+ * + * string checker_id = 4; + */ + public com.google.protobuf.ByteString + getCheckerIdBytes() { + java.lang.Object ref = checkerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + checkerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The checker ID.
+     * 
+ * + * string checker_id = 4; + */ + public Builder setCheckerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + checkerId_ = value; + onChanged(); + return this; + } + /** + *
+     * The checker ID.
+     * 
+ * + * string checker_id = 4; + */ + public Builder clearCheckerId() { + + checkerId_ = getDefaultInstance().getCheckerId(); + onChanged(); + return this; + } + /** + *
+     * The checker ID.
+     * 
+ * + * string checker_id = 4; + */ + public Builder setCheckerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + checkerId_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + *
+     * The checker's human-readable name.
+     * 
+ * + * string display_name = 5; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The checker's human-readable name.
+     * 
+ * + * string display_name = 5; + */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The checker's human-readable name.
+     * 
+ * + * string display_name = 5; + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + *
+     * The checker's human-readable name.
+     * 
+ * + * string display_name = 5; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + *
+     * The checker's human-readable name.
+     * 
+ * + * string display_name = 5; + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(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.InternalChecker) + } + + // @@protoc_insertion_point(class_scope:google.monitoring.v3.InternalChecker) + private static final com.google.monitoring.v3.InternalChecker DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.monitoring.v3.InternalChecker(); + } + + public static com.google.monitoring.v3.InternalChecker getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InternalChecker parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InternalChecker(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.monitoring.v3.InternalChecker getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalCheckerOrBuilder.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalCheckerOrBuilder.java new file mode 100644 index 000000000000..03f2d8729869 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/InternalCheckerOrBuilder.java @@ -0,0 +1,103 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/uptime.proto + +package com.google.monitoring.v3; + +public interface InternalCheckerOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.InternalChecker) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The GCP project ID. Not necessarily the same as the project_id for the
+   * config.
+   * 
+ * + * string project_id = 1; + */ + java.lang.String getProjectId(); + /** + *
+   * The GCP project ID. Not necessarily the same as the project_id for the
+   * config.
+   * 
+ * + * string project_id = 1; + */ + com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+   * The internal network to perform this uptime check on.
+   * 
+ * + * string network = 2; + */ + java.lang.String getNetwork(); + /** + *
+   * The internal network to perform this uptime check on.
+   * 
+ * + * string network = 2; + */ + com.google.protobuf.ByteString + getNetworkBytes(); + + /** + *
+   * The GCP zone the uptime check should egress from. Only respected for
+   * internal uptime checks, where internal_network is specified.
+   * 
+ * + * string gcp_zone = 3; + */ + java.lang.String getGcpZone(); + /** + *
+   * The GCP zone the uptime check should egress from. Only respected for
+   * internal uptime checks, where internal_network is specified.
+   * 
+ * + * string gcp_zone = 3; + */ + com.google.protobuf.ByteString + getGcpZoneBytes(); + + /** + *
+   * The checker ID.
+   * 
+ * + * string checker_id = 4; + */ + java.lang.String getCheckerId(); + /** + *
+   * The checker ID.
+   * 
+ * + * string checker_id = 4; + */ + com.google.protobuf.ByteString + getCheckerIdBytes(); + + /** + *
+   * The checker's human-readable name.
+   * 
+ * + * string display_name = 5; + */ + java.lang.String getDisplayName(); + /** + *
+   * The checker's human-readable name.
+   * 
+ * + * string display_name = 5; + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java index 0c771424ab75..2d6c83b05eaa 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMonitoredResourceDescriptorsResponse.java @@ -5,7 +5,7 @@ /** *
- * The `ListMonitoredResourcDescriptors` response.
+ * The `ListMonitoredResourceDescriptors` response.
  * 
* * Protobuf type {@code google.monitoring.v3.ListMonitoredResourceDescriptorsResponse} @@ -375,7 +375,7 @@ protected Builder newBuilderForType( } /** *
-   * The `ListMonitoredResourcDescriptors` response.
+   * The `ListMonitoredResourceDescriptors` response.
    * 
* * Protobuf type {@code google.monitoring.v3.ListMonitoredResourceDescriptorsResponse} diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java index e9abf5bbf84a..43516fcfe653 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequest.java @@ -445,9 +445,8 @@ public com.google.monitoring.v3.AggregationOrBuilder getAggregationOrBuilder() { private volatile java.lang.Object orderBy_; /** *
-   * Specifies the order in which the points of the time series should
-   * be returned.  By default, results are not ordered.  Currently,
-   * this field must be left blank.
+   * Unsupported: must be left blank. The points in each time series are
+   * returned in reverse time order.
    * 
* * string order_by = 6; @@ -466,9 +465,8 @@ public java.lang.String getOrderBy() { } /** *
-   * Specifies the order in which the points of the time series should
-   * be returned.  By default, results are not ordered.  Currently,
-   * this field must be left blank.
+   * Unsupported: must be left blank. The points in each time series are
+   * returned in reverse time order.
    * 
* * string order_by = 6; @@ -516,10 +514,11 @@ public com.google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView getView() { private int pageSize_; /** *
-   * A positive number that is the maximum number of results to return.
-   * When `view` field sets to `FULL`, it limits the number of `Points` server
-   * will return; if `view` field is `HEADERS`, it limits the number of
-   * `TimeSeries` server will return.
+   * A positive number that is the maximum number of results to return. If
+   * `page_size` is empty or more than 100,000 results, the effective
+   * `page_size` is 100,000 results. If `view` is set to `FULL`, this is the
+   * maximum number of `Points` returned. If `view` is set to `HEADERS`, this is
+   * the maximum number of `TimeSeries` returned.
    * 
* * int32 page_size = 8; @@ -1578,9 +1577,8 @@ public com.google.monitoring.v3.AggregationOrBuilder getAggregationOrBuilder() { private java.lang.Object orderBy_ = ""; /** *
-     * Specifies the order in which the points of the time series should
-     * be returned.  By default, results are not ordered.  Currently,
-     * this field must be left blank.
+     * Unsupported: must be left blank. The points in each time series are
+     * returned in reverse time order.
      * 
* * string order_by = 6; @@ -1599,9 +1597,8 @@ public java.lang.String getOrderBy() { } /** *
-     * Specifies the order in which the points of the time series should
-     * be returned.  By default, results are not ordered.  Currently,
-     * this field must be left blank.
+     * Unsupported: must be left blank. The points in each time series are
+     * returned in reverse time order.
      * 
* * string order_by = 6; @@ -1621,9 +1618,8 @@ public java.lang.String getOrderBy() { } /** *
-     * Specifies the order in which the points of the time series should
-     * be returned.  By default, results are not ordered.  Currently,
-     * this field must be left blank.
+     * Unsupported: must be left blank. The points in each time series are
+     * returned in reverse time order.
      * 
* * string order_by = 6; @@ -1640,9 +1636,8 @@ public Builder setOrderBy( } /** *
-     * Specifies the order in which the points of the time series should
-     * be returned.  By default, results are not ordered.  Currently,
-     * this field must be left blank.
+     * Unsupported: must be left blank. The points in each time series are
+     * returned in reverse time order.
      * 
* * string order_by = 6; @@ -1655,9 +1650,8 @@ public Builder clearOrderBy() { } /** *
-     * Specifies the order in which the points of the time series should
-     * be returned.  By default, results are not ordered.  Currently,
-     * this field must be left blank.
+     * Unsupported: must be left blank. The points in each time series are
+     * returned in reverse time order.
      * 
* * string order_by = 6; @@ -1742,10 +1736,11 @@ public Builder clearView() { private int pageSize_ ; /** *
-     * A positive number that is the maximum number of results to return.
-     * When `view` field sets to `FULL`, it limits the number of `Points` server
-     * will return; if `view` field is `HEADERS`, it limits the number of
-     * `TimeSeries` server will return.
+     * A positive number that is the maximum number of results to return. If
+     * `page_size` is empty or more than 100,000 results, the effective
+     * `page_size` is 100,000 results. If `view` is set to `FULL`, this is the
+     * maximum number of `Points` returned. If `view` is set to `HEADERS`, this is
+     * the maximum number of `TimeSeries` returned.
      * 
* * int32 page_size = 8; @@ -1755,10 +1750,11 @@ public int getPageSize() { } /** *
-     * A positive number that is the maximum number of results to return.
-     * When `view` field sets to `FULL`, it limits the number of `Points` server
-     * will return; if `view` field is `HEADERS`, it limits the number of
-     * `TimeSeries` server will return.
+     * A positive number that is the maximum number of results to return. If
+     * `page_size` is empty or more than 100,000 results, the effective
+     * `page_size` is 100,000 results. If `view` is set to `FULL`, this is the
+     * maximum number of `Points` returned. If `view` is set to `HEADERS`, this is
+     * the maximum number of `TimeSeries` returned.
      * 
* * int32 page_size = 8; @@ -1771,10 +1767,11 @@ public Builder setPageSize(int value) { } /** *
-     * A positive number that is the maximum number of results to return.
-     * When `view` field sets to `FULL`, it limits the number of `Points` server
-     * will return; if `view` field is `HEADERS`, it limits the number of
-     * `TimeSeries` server will return.
+     * A positive number that is the maximum number of results to return. If
+     * `page_size` is empty or more than 100,000 results, the effective
+     * `page_size` is 100,000 results. If `view` is set to `FULL`, this is the
+     * maximum number of `Points` returned. If `view` is set to `HEADERS`, this is
+     * the maximum number of `TimeSeries` returned.
      * 
* * int32 page_size = 8; diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequestOrBuilder.java index ce86d87b557a..39c02501588a 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesRequestOrBuilder.java @@ -119,9 +119,8 @@ public interface ListTimeSeriesRequestOrBuilder extends /** *
-   * Specifies the order in which the points of the time series should
-   * be returned.  By default, results are not ordered.  Currently,
-   * this field must be left blank.
+   * Unsupported: must be left blank. The points in each time series are
+   * returned in reverse time order.
    * 
* * string order_by = 6; @@ -129,9 +128,8 @@ public interface ListTimeSeriesRequestOrBuilder extends java.lang.String getOrderBy(); /** *
-   * Specifies the order in which the points of the time series should
-   * be returned.  By default, results are not ordered.  Currently,
-   * this field must be left blank.
+   * Unsupported: must be left blank. The points in each time series are
+   * returned in reverse time order.
    * 
* * string order_by = 6; @@ -158,10 +156,11 @@ public interface ListTimeSeriesRequestOrBuilder extends /** *
-   * A positive number that is the maximum number of results to return.
-   * When `view` field sets to `FULL`, it limits the number of `Points` server
-   * will return; if `view` field is `HEADERS`, it limits the number of
-   * `TimeSeries` server will return.
+   * A positive number that is the maximum number of results to return. If
+   * `page_size` is empty or more than 100,000 results, the effective
+   * `page_size` is 100,000 results. If `view` is set to `FULL`, this is the
+   * maximum number of `Points` returned. If `view` is set to `HEADERS`, this is
+   * the maximum number of `TimeSeries` returned.
    * 
* * int32 page_size = 8; diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java index e3e3f0a63d43..642813767d14 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponse.java @@ -22,6 +22,7 @@ private ListTimeSeriesResponse(com.google.protobuf.GeneratedMessageV3.Builder private ListTimeSeriesResponse() { timeSeries_ = java.util.Collections.emptyList(); nextPageToken_ = ""; + executionErrors_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -63,6 +64,15 @@ private ListTimeSeriesResponse( nextPageToken_ = s; break; } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + executionErrors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + executionErrors_.add( + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry)); + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -81,6 +91,9 @@ private ListTimeSeriesResponse( if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { timeSeries_ = java.util.Collections.unmodifiableList(timeSeries_); } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + executionErrors_ = java.util.Collections.unmodifiableList(executionErrors_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -200,6 +213,66 @@ public java.lang.String getNextPageToken() { } } + public static final int EXECUTION_ERRORS_FIELD_NUMBER = 3; + private java.util.List executionErrors_; + /** + *
+   * Query execution errors that may have caused the time series data returned
+   * to be incomplete.
+   * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public java.util.List getExecutionErrorsList() { + return executionErrors_; + } + /** + *
+   * Query execution errors that may have caused the time series data returned
+   * to be incomplete.
+   * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public java.util.List + getExecutionErrorsOrBuilderList() { + return executionErrors_; + } + /** + *
+   * Query execution errors that may have caused the time series data returned
+   * to be incomplete.
+   * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public int getExecutionErrorsCount() { + return executionErrors_.size(); + } + /** + *
+   * Query execution errors that may have caused the time series data returned
+   * to be incomplete.
+   * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public com.google.rpc.Status getExecutionErrors(int index) { + return executionErrors_.get(index); + } + /** + *
+   * Query execution errors that may have caused the time series data returned
+   * to be incomplete.
+   * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder( + int index) { + return executionErrors_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -220,6 +293,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getNextPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } + for (int i = 0; i < executionErrors_.size(); i++) { + output.writeMessage(3, executionErrors_.get(i)); + } unknownFields.writeTo(output); } @@ -236,6 +312,10 @@ public int getSerializedSize() { if (!getNextPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } + for (int i = 0; i < executionErrors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, executionErrors_.get(i)); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -256,6 +336,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getTimeSeriesList()); result = result && getNextPageToken() .equals(other.getNextPageToken()); + result = result && getExecutionErrorsList() + .equals(other.getExecutionErrorsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -273,6 +355,10 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); + if (getExecutionErrorsCount() > 0) { + hash = (37 * hash) + EXECUTION_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getExecutionErrorsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -406,6 +492,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTimeSeriesFieldBuilder(); + getExecutionErrorsFieldBuilder(); } } @java.lang.Override @@ -419,6 +506,12 @@ public Builder clear() { } nextPageToken_ = ""; + if (executionErrorsBuilder_ == null) { + executionErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + executionErrorsBuilder_.clear(); + } return this; } @@ -457,6 +550,15 @@ public com.google.monitoring.v3.ListTimeSeriesResponse buildPartial() { result.timeSeries_ = timeSeriesBuilder_.build(); } result.nextPageToken_ = nextPageToken_; + if (executionErrorsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + executionErrors_ = java.util.Collections.unmodifiableList(executionErrors_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.executionErrors_ = executionErrors_; + } else { + result.executionErrors_ = executionErrorsBuilder_.build(); + } result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -536,6 +638,32 @@ public Builder mergeFrom(com.google.monitoring.v3.ListTimeSeriesResponse other) nextPageToken_ = other.nextPageToken_; onChanged(); } + if (executionErrorsBuilder_ == null) { + if (!other.executionErrors_.isEmpty()) { + if (executionErrors_.isEmpty()) { + executionErrors_ = other.executionErrors_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureExecutionErrorsIsMutable(); + executionErrors_.addAll(other.executionErrors_); + } + onChanged(); + } + } else { + if (!other.executionErrors_.isEmpty()) { + if (executionErrorsBuilder_.isEmpty()) { + executionErrorsBuilder_.dispose(); + executionErrorsBuilder_ = null; + executionErrors_ = other.executionErrors_; + bitField0_ = (bitField0_ & ~0x00000004); + executionErrorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getExecutionErrorsFieldBuilder() : null; + } else { + executionErrorsBuilder_.addAllMessages(other.executionErrors_); + } + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -976,6 +1104,336 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } + + private java.util.List executionErrors_ = + java.util.Collections.emptyList(); + private void ensureExecutionErrorsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + executionErrors_ = new java.util.ArrayList(executionErrors_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> executionErrorsBuilder_; + + /** + *
+     * Query execution errors that may have caused the time series data returned
+     * to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public java.util.List getExecutionErrorsList() { + if (executionErrorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(executionErrors_); + } else { + return executionErrorsBuilder_.getMessageList(); + } + } + /** + *
+     * Query execution errors that may have caused the time series data returned
+     * to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public int getExecutionErrorsCount() { + if (executionErrorsBuilder_ == null) { + return executionErrors_.size(); + } else { + return executionErrorsBuilder_.getCount(); + } + } + /** + *
+     * Query execution errors that may have caused the time series data returned
+     * to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public com.google.rpc.Status getExecutionErrors(int index) { + if (executionErrorsBuilder_ == null) { + return executionErrors_.get(index); + } else { + return executionErrorsBuilder_.getMessage(index); + } + } + /** + *
+     * Query execution errors that may have caused the time series data returned
+     * to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public Builder setExecutionErrors( + int index, com.google.rpc.Status value) { + if (executionErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionErrorsIsMutable(); + executionErrors_.set(index, value); + onChanged(); + } else { + executionErrorsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Query execution errors that may have caused the time series data returned
+     * to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public Builder setExecutionErrors( + int index, com.google.rpc.Status.Builder builderForValue) { + if (executionErrorsBuilder_ == null) { + ensureExecutionErrorsIsMutable(); + executionErrors_.set(index, builderForValue.build()); + onChanged(); + } else { + executionErrorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Query execution errors that may have caused the time series data returned
+     * to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public Builder addExecutionErrors(com.google.rpc.Status value) { + if (executionErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionErrorsIsMutable(); + executionErrors_.add(value); + onChanged(); + } else { + executionErrorsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Query execution errors that may have caused the time series data returned
+     * to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public Builder addExecutionErrors( + int index, com.google.rpc.Status value) { + if (executionErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionErrorsIsMutable(); + executionErrors_.add(index, value); + onChanged(); + } else { + executionErrorsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Query execution errors that may have caused the time series data returned
+     * to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public Builder addExecutionErrors( + com.google.rpc.Status.Builder builderForValue) { + if (executionErrorsBuilder_ == null) { + ensureExecutionErrorsIsMutable(); + executionErrors_.add(builderForValue.build()); + onChanged(); + } else { + executionErrorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Query execution errors that may have caused the time series data returned
+     * to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public Builder addExecutionErrors( + int index, com.google.rpc.Status.Builder builderForValue) { + if (executionErrorsBuilder_ == null) { + ensureExecutionErrorsIsMutable(); + executionErrors_.add(index, builderForValue.build()); + onChanged(); + } else { + executionErrorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Query execution errors that may have caused the time series data returned
+     * to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public Builder addAllExecutionErrors( + java.lang.Iterable values) { + if (executionErrorsBuilder_ == null) { + ensureExecutionErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, executionErrors_); + onChanged(); + } else { + executionErrorsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Query execution errors that may have caused the time series data returned
+     * to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public Builder clearExecutionErrors() { + if (executionErrorsBuilder_ == null) { + executionErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + executionErrorsBuilder_.clear(); + } + return this; + } + /** + *
+     * Query execution errors that may have caused the time series data returned
+     * to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public Builder removeExecutionErrors(int index) { + if (executionErrorsBuilder_ == null) { + ensureExecutionErrorsIsMutable(); + executionErrors_.remove(index); + onChanged(); + } else { + executionErrorsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Query execution errors that may have caused the time series data returned
+     * to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public com.google.rpc.Status.Builder getExecutionErrorsBuilder( + int index) { + return getExecutionErrorsFieldBuilder().getBuilder(index); + } + /** + *
+     * Query execution errors that may have caused the time series data returned
+     * to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder( + int index) { + if (executionErrorsBuilder_ == null) { + return executionErrors_.get(index); } else { + return executionErrorsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Query execution errors that may have caused the time series data returned
+     * to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public java.util.List + getExecutionErrorsOrBuilderList() { + if (executionErrorsBuilder_ != null) { + return executionErrorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(executionErrors_); + } + } + /** + *
+     * Query execution errors that may have caused the time series data returned
+     * to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public com.google.rpc.Status.Builder addExecutionErrorsBuilder() { + return getExecutionErrorsFieldBuilder().addBuilder( + com.google.rpc.Status.getDefaultInstance()); + } + /** + *
+     * Query execution errors that may have caused the time series data returned
+     * to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public com.google.rpc.Status.Builder addExecutionErrorsBuilder( + int index) { + return getExecutionErrorsFieldBuilder().addBuilder( + index, com.google.rpc.Status.getDefaultInstance()); + } + /** + *
+     * Query execution errors that may have caused the time series data returned
+     * to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + public java.util.List + getExecutionErrorsBuilderList() { + return getExecutionErrorsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getExecutionErrorsFieldBuilder() { + if (executionErrorsBuilder_ == null) { + executionErrorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + executionErrors_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + executionErrors_ = null; + } + return executionErrorsBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponseOrBuilder.java index 561a07ce64c5..d8f60620cca6 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListTimeSeriesResponseOrBuilder.java @@ -72,4 +72,53 @@ com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder( */ com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + *
+   * Query execution errors that may have caused the time series data returned
+   * to be incomplete.
+   * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + java.util.List + getExecutionErrorsList(); + /** + *
+   * Query execution errors that may have caused the time series data returned
+   * to be incomplete.
+   * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + com.google.rpc.Status getExecutionErrors(int index); + /** + *
+   * Query execution errors that may have caused the time series data returned
+   * to be incomplete.
+   * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + int getExecutionErrorsCount(); + /** + *
+   * Query execution errors that may have caused the time series data returned
+   * to be incomplete.
+   * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + java.util.List + getExecutionErrorsOrBuilderList(); + /** + *
+   * Query execution errors that may have caused the time series data returned
+   * to be incomplete.
+   * 
+ * + * repeated .google.rpc.Status execution_errors = 3; + */ + com.google.rpc.StatusOrBuilder getExecutionErrorsOrBuilder( + int index); } diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java index 7068478af879..d010b2b164df 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequest.java @@ -102,8 +102,8 @@ private ListUptimeCheckConfigsRequest( private volatile java.lang.Object parent_; /** *
-   * The project whose uptime check configurations are listed. The format is
-   *   `projects/[PROJECT_ID]`.
+   * The project whose uptime check configurations are listed. The format
+   *   is `projects/[PROJECT_ID]`.
    * 
* * string parent = 1; @@ -122,8 +122,8 @@ public java.lang.String getParent() { } /** *
-   * The project whose uptime check configurations are listed. The format is
-   *   `projects/[PROJECT_ID]`.
+   * The project whose uptime check configurations are listed. The format
+   *   is `projects/[PROJECT_ID]`.
    * 
* * string parent = 1; @@ -548,8 +548,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** *
-     * The project whose uptime check configurations are listed. The format is
-     *   `projects/[PROJECT_ID]`.
+     * The project whose uptime check configurations are listed. The format
+     *   is `projects/[PROJECT_ID]`.
      * 
* * string parent = 1; @@ -568,8 +568,8 @@ public java.lang.String getParent() { } /** *
-     * The project whose uptime check configurations are listed. The format is
-     *   `projects/[PROJECT_ID]`.
+     * The project whose uptime check configurations are listed. The format
+     *   is `projects/[PROJECT_ID]`.
      * 
* * string parent = 1; @@ -589,8 +589,8 @@ public java.lang.String getParent() { } /** *
-     * The project whose uptime check configurations are listed. The format is
-     *   `projects/[PROJECT_ID]`.
+     * The project whose uptime check configurations are listed. The format
+     *   is `projects/[PROJECT_ID]`.
      * 
* * string parent = 1; @@ -607,8 +607,8 @@ public Builder setParent( } /** *
-     * The project whose uptime check configurations are listed. The format is
-     *   `projects/[PROJECT_ID]`.
+     * The project whose uptime check configurations are listed. The format
+     *   is `projects/[PROJECT_ID]`.
      * 
* * string parent = 1; @@ -621,8 +621,8 @@ public Builder clearParent() { } /** *
-     * The project whose uptime check configurations are listed. The format is
-     *   `projects/[PROJECT_ID]`.
+     * The project whose uptime check configurations are listed. The format
+     *   is `projects/[PROJECT_ID]`.
      * 
* * string parent = 1; diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequestOrBuilder.java index 6b14f7644296..1f27a8737c0d 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsRequestOrBuilder.java @@ -9,8 +9,8 @@ public interface ListUptimeCheckConfigsRequestOrBuilder extends /** *
-   * The project whose uptime check configurations are listed. The format is
-   *   `projects/[PROJECT_ID]`.
+   * The project whose uptime check configurations are listed. The format
+   *   is `projects/[PROJECT_ID]`.
    * 
* * string parent = 1; @@ -18,8 +18,8 @@ public interface ListUptimeCheckConfigsRequestOrBuilder extends java.lang.String getParent(); /** *
-   * The project whose uptime check configurations are listed. The format is
-   *   `projects/[PROJECT_ID]`.
+   * The project whose uptime check configurations are listed. The format
+   *   is `projects/[PROJECT_ID]`.
    * 
* * string parent = 1; diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java index d36be4fca330..a5c91c462e71 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponse.java @@ -22,6 +22,7 @@ private ListUptimeCheckConfigsResponse(com.google.protobuf.GeneratedMessageV3.Bu private ListUptimeCheckConfigsResponse() { uptimeCheckConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; + totalSize_ = 0; } @java.lang.Override @@ -63,6 +64,11 @@ private ListUptimeCheckConfigsResponse( nextPageToken_ = s; break; } + case 24: { + + totalSize_ = input.readInt32(); + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -204,6 +210,20 @@ public java.lang.String getNextPageToken() { } } + public static final int TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_; + /** + *
+   * The total number of uptime check configurations for the project,
+   * irrespective of any pagination.
+   * 
+ * + * int32 total_size = 3; + */ + public int getTotalSize() { + return totalSize_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -224,6 +244,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getNextPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } unknownFields.writeTo(output); } @@ -240,6 +263,10 @@ public int getSerializedSize() { if (!getNextPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, totalSize_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -260,6 +287,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getUptimeCheckConfigsList()); result = result && getNextPageToken() .equals(other.getNextPageToken()); + result = result && (getTotalSize() + == other.getTotalSize()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -277,6 +306,8 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -423,6 +454,8 @@ public Builder clear() { } nextPageToken_ = ""; + totalSize_ = 0; + return this; } @@ -461,6 +494,7 @@ public com.google.monitoring.v3.ListUptimeCheckConfigsResponse buildPartial() { result.uptimeCheckConfigs_ = uptimeCheckConfigsBuilder_.build(); } result.nextPageToken_ = nextPageToken_; + result.totalSize_ = totalSize_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -540,6 +574,9 @@ public Builder mergeFrom(com.google.monitoring.v3.ListUptimeCheckConfigsResponse nextPageToken_ = other.nextPageToken_; onChanged(); } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -990,6 +1027,47 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } + + private int totalSize_ ; + /** + *
+     * The total number of uptime check configurations for the project,
+     * irrespective of any pagination.
+     * 
+ * + * int32 total_size = 3; + */ + public int getTotalSize() { + return totalSize_; + } + /** + *
+     * The total number of uptime check configurations for the project,
+     * irrespective of any pagination.
+     * 
+ * + * int32 total_size = 3; + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + onChanged(); + return this; + } + /** + *
+     * The total number of uptime check configurations for the project,
+     * irrespective of any pagination.
+     * 
+ * + * int32 total_size = 3; + */ + public Builder clearTotalSize() { + + totalSize_ = 0; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponseOrBuilder.java index 00467c672290..d19c44aca75d 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListUptimeCheckConfigsResponseOrBuilder.java @@ -76,4 +76,14 @@ com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigsOrBuild */ com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + *
+   * The total number of uptime check configurations for the project,
+   * irrespective of any pagination.
+   * 
+ * + * int32 total_size = 3; + */ + int getTotalSize(); } diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java index b67189c05401..9f3d377dec0d 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricProto.java @@ -34,23 +34,26 @@ public static void registerAllExtensions( static { java.lang.String[] descriptorData = { "\n!google/monitoring/v3/metric.proto\022\024goo" + - "gle.monitoring.v3\032\027google/api/metric.pro" + - "to\032#google/api/monitored_resource.proto\032" + - "!google/monitoring/v3/common.proto\"n\n\005Po" + - "int\0224\n\010interval\030\001 \001(\0132\".google.monitorin" + - "g.v3.TimeInterval\022/\n\005value\030\002 \001(\0132 .googl" + - "e.monitoring.v3.TypedValue\"\210\002\n\nTimeSerie" + - "s\022\"\n\006metric\030\001 \001(\0132\022.google.api.Metric\022/\n" + - "\010resource\030\002 \001(\0132\035.google.api.MonitoredRe" + - "source\022<\n\013metric_kind\030\003 \001(\0162\'.google.api" + - ".MetricDescriptor.MetricKind\022:\n\nvalue_ty" + - "pe\030\004 \001(\0162&.google.api.MetricDescriptor.V" + - "alueType\022+\n\006points\030\005 \003(\0132\033.google.monito" + - "ring.v3.PointB\243\001\n\030com.google.monitoring." + - "v3B\013MetricProtoP\001Z>google.golang.org/gen" + - "proto/googleapis/monitoring/v3;monitorin" + - "g\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\" + - "Cloud\\Monitoring\\V3b\006proto3" + "gle.monitoring.v3\032\034google/api/annotation" + + "s.proto\032\026google/api/label.proto\032\027google/" + + "api/metric.proto\032#google/api/monitored_r" + + "esource.proto\032!google/monitoring/v3/comm" + + "on.proto\"n\n\005Point\0224\n\010interval\030\001 \001(\0132\".go" + + "ogle.monitoring.v3.TimeInterval\022/\n\005value" + + "\030\002 \001(\0132 .google.monitoring.v3.TypedValue" + + "\"\301\002\n\nTimeSeries\022\"\n\006metric\030\001 \001(\0132\022.google" + + ".api.Metric\022/\n\010resource\030\002 \001(\0132\035.google.a" + + "pi.MonitoredResource\0227\n\010metadata\030\007 \001(\0132%" + + ".google.api.MonitoredResourceMetadata\022<\n" + + "\013metric_kind\030\003 \001(\0162\'.google.api.MetricDe" + + "scriptor.MetricKind\022:\n\nvalue_type\030\004 \001(\0162" + + "&.google.api.MetricDescriptor.ValueType\022" + + "+\n\006points\030\005 \003(\0132\033.google.monitoring.v3.P" + + "ointB\243\001\n\030com.google.monitoring.v3B\013Metri" + + "cProtoP\001Z>google.golang.org/genproto/goo" + + "gleapis/monitoring/v3;monitoring\252\002\032Googl" + + "e.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\Mon" + + "itoring\\V3b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -63,6 +66,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.LabelProto.getDescriptor(), com.google.api.MetricProto.getDescriptor(), com.google.api.MonitoredResourceProto.getDescriptor(), com.google.monitoring.v3.CommonProto.getDescriptor(), @@ -78,7 +83,9 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_monitoring_v3_TimeSeries_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_monitoring_v3_TimeSeries_descriptor, - new java.lang.String[] { "Metric", "Resource", "MetricKind", "ValueType", "Points", }); + new java.lang.String[] { "Metric", "Resource", "Metadata", "MetricKind", "ValueType", "Points", }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.LabelProto.getDescriptor(); com.google.api.MetricProto.getDescriptor(); com.google.api.MonitoredResourceProto.getDescriptor(); com.google.monitoring.v3.CommonProto.getDescriptor(); diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java index 6baa495a2935..afde06de6d48 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java @@ -88,82 +88,84 @@ public static void registerAllExtensions( "notations.proto\032\027google/api/metric.proto" + "\032#google/api/monitored_resource.proto\032!g" + "oogle/monitoring/v3/common.proto\032!google" + - "/monitoring/v3/metric.proto\032\033google/prot" + - "obuf/empty.proto\032\027google/rpc/status.prot" + - "o\"n\n\'ListMonitoredResourceDescriptorsReq" + - "uest\022\014\n\004name\030\005 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021\n\tpa" + - "ge_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"\212\001\n(Li" + - "stMonitoredResourceDescriptorsResponse\022E" + - "\n\024resource_descriptors\030\001 \003(\0132\'.google.ap" + - "i.MonitoredResourceDescriptor\022\027\n\017next_pa" + - "ge_token\030\002 \001(\t\"5\n%GetMonitoredResourceDe" + - "scriptorRequest\022\014\n\004name\030\003 \001(\t\"c\n\034ListMet" + - "ricDescriptorsRequest\022\014\n\004name\030\005 \001(\t\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\"r\n\035ListMetricDescriptorsRespo" + - "nse\0228\n\022metric_descriptors\030\001 \003(\0132\034.google" + - ".api.MetricDescriptor\022\027\n\017next_page_token" + - "\030\002 \001(\t\"*\n\032GetMetricDescriptorRequest\022\014\n\004" + - "name\030\003 \001(\t\"f\n\035CreateMetricDescriptorRequ" + - "est\022\014\n\004name\030\003 \001(\t\0227\n\021metric_descriptor\030\002" + - " \001(\0132\034.google.api.MetricDescriptor\"-\n\035De" + - "leteMetricDescriptorRequest\022\014\n\004name\030\003 \001(" + - "\t\"\317\002\n\025ListTimeSeriesRequest\022\014\n\004name\030\n \001(" + - "\t\022\016\n\006filter\030\002 \001(\t\0224\n\010interval\030\004 \001(\0132\".go" + - "ogle.monitoring.v3.TimeInterval\0226\n\013aggre" + - "gation\030\005 \001(\0132!.google.monitoring.v3.Aggr" + - "egation\022\020\n\010order_by\030\006 \001(\t\022H\n\004view\030\007 \001(\0162" + - ":.google.monitoring.v3.ListTimeSeriesReq" + - "uest.TimeSeriesView\022\021\n\tpage_size\030\010 \001(\005\022\022" + - "\n\npage_token\030\t \001(\t\"\'\n\016TimeSeriesView\022\010\n\004" + - "FULL\020\000\022\013\n\007HEADERS\020\001\"h\n\026ListTimeSeriesRes" + - "ponse\0225\n\013time_series\030\001 \003(\0132 .google.moni" + - "toring.v3.TimeSeries\022\027\n\017next_page_token\030" + - "\002 \001(\t\"^\n\027CreateTimeSeriesRequest\022\014\n\004name" + - "\030\003 \001(\t\0225\n\013time_series\030\002 \003(\0132 .google.mon" + - "itoring.v3.TimeSeries\"r\n\025CreateTimeSerie" + - "sError\0225\n\013time_series\030\001 \001(\0132 .google.mon" + - "itoring.v3.TimeSeries\022\"\n\006status\030\002 \001(\0132\022." + - "google.rpc.Status2\365\n\n\rMetricService\022\335\001\n " + - "ListMonitoredResourceDescriptors\022=.googl" + - "e.monitoring.v3.ListMonitoredResourceDes" + - "criptorsRequest\032>.google.monitoring.v3.L" + - "istMonitoredResourceDescriptorsResponse\"" + - ":\202\323\344\223\0024\0222/v3/{name=projects/*}/monitored" + - "ResourceDescriptors\022\304\001\n\036GetMonitoredReso" + - "urceDescriptor\022;.google.monitoring.v3.Ge" + - "tMonitoredResourceDescriptorRequest\032\'.go" + - "ogle.api.MonitoredResourceDescriptor\"<\202\323" + - "\344\223\0026\0224/v3/{name=projects/*/monitoredReso" + - "urceDescriptors/*}\022\261\001\n\025ListMetricDescrip" + - "tors\0222.google.monitoring.v3.ListMetricDe" + - "scriptorsRequest\0323.google.monitoring.v3." + - "ListMetricDescriptorsResponse\"/\202\323\344\223\002)\022\'/" + - "v3/{name=projects/*}/metricDescriptors\022\231" + - "\001\n\023GetMetricDescriptor\0220.google.monitori" + - "ng.v3.GetMetricDescriptorRequest\032\034.googl" + - "e.api.MetricDescriptor\"2\202\323\344\223\002,\022*/v3/{nam" + - "e=projects/*/metricDescriptors/**}\022\257\001\n\026C" + - "reateMetricDescriptor\0223.google.monitorin" + - "g.v3.CreateMetricDescriptorRequest\032\034.goo" + - "gle.api.MetricDescriptor\"B\202\323\344\223\002<\"\'/v3/{n" + - "ame=projects/*}/metricDescriptors:\021metri" + - "c_descriptor\022\231\001\n\026DeleteMetricDescriptor\022" + - "3.google.monitoring.v3.DeleteMetricDescr" + - "iptorRequest\032\026.google.protobuf.Empty\"2\202\323" + - "\344\223\002,**/v3/{name=projects/*/metricDescrip" + - "tors/**}\022\225\001\n\016ListTimeSeries\022+.google.mon" + - "itoring.v3.ListTimeSeriesRequest\032,.googl" + - "e.monitoring.v3.ListTimeSeriesResponse\"(" + - "\202\323\344\223\002\"\022 /v3/{name=projects/*}/timeSeries" + - "\022\206\001\n\020CreateTimeSeries\022-.google.monitorin" + - "g.v3.CreateTimeSeriesRequest\032\026.google.pr" + - "otobuf.Empty\"+\202\323\344\223\002%\" /v3/{name=projects" + - "/*}/timeSeries:\001*B\252\001\n\030com.google.monitor" + - "ing.v3B\022MetricServiceProtoP\001Z>google.gol" + - "ang.org/genproto/googleapis/monitoring/v" + - "3;monitoring\252\002\032Google.Cloud.Monitoring.V" + - "3\312\002\032Google\\Cloud\\Monitoring\\V3b\006proto3" + "/monitoring/v3/metric.proto\032\036google/prot" + + "obuf/duration.proto\032\033google/protobuf/emp" + + "ty.proto\032\027google/rpc/status.proto\"n\n\'Lis" + + "tMonitoredResourceDescriptorsRequest\022\014\n\004" + + "name\030\005 \001(\t\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\"\212\001\n(ListMonito" + + "redResourceDescriptorsResponse\022E\n\024resour" + + "ce_descriptors\030\001 \003(\0132\'.google.api.Monito" + + "redResourceDescriptor\022\027\n\017next_page_token" + + "\030\002 \001(\t\"5\n%GetMonitoredResourceDescriptor" + + "Request\022\014\n\004name\030\003 \001(\t\"c\n\034ListMetricDescr" + + "iptorsRequest\022\014\n\004name\030\005 \001(\t\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\"r\n\035ListMetricDescriptorsResponse\0228\n\022m" + + "etric_descriptors\030\001 \003(\0132\034.google.api.Met" + + "ricDescriptor\022\027\n\017next_page_token\030\002 \001(\t\"*" + + "\n\032GetMetricDescriptorRequest\022\014\n\004name\030\003 \001" + + "(\t\"f\n\035CreateMetricDescriptorRequest\022\014\n\004n" + + "ame\030\003 \001(\t\0227\n\021metric_descriptor\030\002 \001(\0132\034.g" + + "oogle.api.MetricDescriptor\"-\n\035DeleteMetr" + + "icDescriptorRequest\022\014\n\004name\030\003 \001(\t\"\317\002\n\025Li" + + "stTimeSeriesRequest\022\014\n\004name\030\n \001(\t\022\016\n\006fil" + + "ter\030\002 \001(\t\0224\n\010interval\030\004 \001(\0132\".google.mon" + + "itoring.v3.TimeInterval\0226\n\013aggregation\030\005" + + " \001(\0132!.google.monitoring.v3.Aggregation\022" + + "\020\n\010order_by\030\006 \001(\t\022H\n\004view\030\007 \001(\0162:.google" + + ".monitoring.v3.ListTimeSeriesRequest.Tim" + + "eSeriesView\022\021\n\tpage_size\030\010 \001(\005\022\022\n\npage_t" + + "oken\030\t \001(\t\"\'\n\016TimeSeriesView\022\010\n\004FULL\020\000\022\013" + + "\n\007HEADERS\020\001\"\226\001\n\026ListTimeSeriesResponse\0225" + + "\n\013time_series\030\001 \003(\0132 .google.monitoring." + + "v3.TimeSeries\022\027\n\017next_page_token\030\002 \001(\t\022," + + "\n\020execution_errors\030\003 \003(\0132\022.google.rpc.St" + + "atus\"^\n\027CreateTimeSeriesRequest\022\014\n\004name\030" + + "\003 \001(\t\0225\n\013time_series\030\002 \003(\0132 .google.moni" + + "toring.v3.TimeSeries\"r\n\025CreateTimeSeries" + + "Error\0225\n\013time_series\030\001 \001(\0132 .google.moni" + + "toring.v3.TimeSeries\022\"\n\006status\030\002 \001(\0132\022.g" + + "oogle.rpc.Status2\365\n\n\rMetricService\022\335\001\n L" + + "istMonitoredResourceDescriptors\022=.google" + + ".monitoring.v3.ListMonitoredResourceDesc" + + "riptorsRequest\032>.google.monitoring.v3.Li" + + "stMonitoredResourceDescriptorsResponse\":" + + "\202\323\344\223\0024\0222/v3/{name=projects/*}/monitoredR" + + "esourceDescriptors\022\304\001\n\036GetMonitoredResou" + + "rceDescriptor\022;.google.monitoring.v3.Get" + + "MonitoredResourceDescriptorRequest\032\'.goo" + + "gle.api.MonitoredResourceDescriptor\"<\202\323\344" + + "\223\0026\0224/v3/{name=projects/*/monitoredResou" + + "rceDescriptors/*}\022\261\001\n\025ListMetricDescript" + + "ors\0222.google.monitoring.v3.ListMetricDes" + + "criptorsRequest\0323.google.monitoring.v3.L" + + "istMetricDescriptorsResponse\"/\202\323\344\223\002)\022\'/v" + + "3/{name=projects/*}/metricDescriptors\022\231\001" + + "\n\023GetMetricDescriptor\0220.google.monitorin" + + "g.v3.GetMetricDescriptorRequest\032\034.google" + + ".api.MetricDescriptor\"2\202\323\344\223\002,\022*/v3/{name" + + "=projects/*/metricDescriptors/**}\022\257\001\n\026Cr" + + "eateMetricDescriptor\0223.google.monitoring" + + ".v3.CreateMetricDescriptorRequest\032\034.goog" + + "le.api.MetricDescriptor\"B\202\323\344\223\002<\"\'/v3/{na" + + "me=projects/*}/metricDescriptors:\021metric" + + "_descriptor\022\231\001\n\026DeleteMetricDescriptor\0223" + + ".google.monitoring.v3.DeleteMetricDescri" + + "ptorRequest\032\026.google.protobuf.Empty\"2\202\323\344" + + "\223\002,**/v3/{name=projects/*/metricDescript" + + "ors/**}\022\225\001\n\016ListTimeSeries\022+.google.moni" + + "toring.v3.ListTimeSeriesRequest\032,.google" + + ".monitoring.v3.ListTimeSeriesResponse\"(\202" + + "\323\344\223\002\"\022 /v3/{name=projects/*}/timeSeries\022" + + "\206\001\n\020CreateTimeSeries\022-.google.monitoring" + + ".v3.CreateTimeSeriesRequest\032\026.google.pro" + + "tobuf.Empty\"+\202\323\344\223\002%\" /v3/{name=projects/" + + "*}/timeSeries:\001*B\252\001\n\030com.google.monitori" + + "ng.v3B\022MetricServiceProtoP\001Z>google.gola" + + "ng.org/genproto/googleapis/monitoring/v3" + + ";monitoring\252\002\032Google.Cloud.Monitoring.V3" + + "\312\002\032Google\\Cloud\\Monitoring\\V3b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -181,6 +183,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.api.MonitoredResourceProto.getDescriptor(), com.google.monitoring.v3.CommonProto.getDescriptor(), com.google.monitoring.v3.MetricProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), }, assigner); @@ -243,7 +246,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_monitoring_v3_ListTimeSeriesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_monitoring_v3_ListTimeSeriesResponse_descriptor, - new java.lang.String[] { "TimeSeries", "NextPageToken", }); + new java.lang.String[] { "TimeSeries", "NextPageToken", "ExecutionErrors", }); internal_static_google_monitoring_v3_CreateTimeSeriesRequest_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_google_monitoring_v3_CreateTimeSeriesRequest_fieldAccessorTable = new @@ -266,6 +269,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.api.MonitoredResourceProto.getDescriptor(); com.google.monitoring.v3.CommonProto.getDescriptor(); com.google.monitoring.v3.MetricProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); } diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java index 72841f30c5f1..fe3bc7c414bf 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptor.java @@ -412,9 +412,9 @@ public com.google.monitoring.v3.ServiceTier convert(java.lang.Integer from) { * must be one of the supported_tiers. *
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; */ - public java.util.List getSupportedTiersList() { + @java.lang.Deprecated public java.util.List getSupportedTiersList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.monitoring.v3.ServiceTier>(supportedTiers_, supportedTiers_converter_); } @@ -424,9 +424,9 @@ public java.util.List getSupportedTiersLis * must be one of the supported_tiers. *
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; */ - public int getSupportedTiersCount() { + @java.lang.Deprecated public int getSupportedTiersCount() { return supportedTiers_.size(); } /** @@ -435,9 +435,9 @@ public int getSupportedTiersCount() { * must be one of the supported_tiers. *
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; */ - public com.google.monitoring.v3.ServiceTier getSupportedTiers(int index) { + @java.lang.Deprecated public com.google.monitoring.v3.ServiceTier getSupportedTiers(int index) { return supportedTiers_converter_.convert(supportedTiers_.get(index)); } /** @@ -446,9 +446,9 @@ public com.google.monitoring.v3.ServiceTier getSupportedTiers(int index) { * must be one of the supported_tiers. *
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; */ - public java.util.List + @java.lang.Deprecated public java.util.List getSupportedTiersValueList() { return supportedTiers_; } @@ -458,9 +458,9 @@ public com.google.monitoring.v3.ServiceTier getSupportedTiers(int index) { * must be one of the supported_tiers. *
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; */ - public int getSupportedTiersValue(int index) { + @java.lang.Deprecated public int getSupportedTiersValue(int index) { return supportedTiers_.get(index); } private int supportedTiersMemoizedSerializedSize; @@ -1674,9 +1674,9 @@ private void ensureSupportedTiersIsMutable() { * must be one of the supported_tiers. * * - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; */ - public java.util.List getSupportedTiersList() { + @java.lang.Deprecated public java.util.List getSupportedTiersList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.monitoring.v3.ServiceTier>(supportedTiers_, supportedTiers_converter_); } @@ -1686,9 +1686,9 @@ public java.util.List getSupportedTiersLis * must be one of the supported_tiers. * * - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; */ - public int getSupportedTiersCount() { + @java.lang.Deprecated public int getSupportedTiersCount() { return supportedTiers_.size(); } /** @@ -1697,9 +1697,9 @@ public int getSupportedTiersCount() { * must be one of the supported_tiers. * * - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; */ - public com.google.monitoring.v3.ServiceTier getSupportedTiers(int index) { + @java.lang.Deprecated public com.google.monitoring.v3.ServiceTier getSupportedTiers(int index) { return supportedTiers_converter_.convert(supportedTiers_.get(index)); } /** @@ -1708,9 +1708,9 @@ public com.google.monitoring.v3.ServiceTier getSupportedTiers(int index) { * must be one of the supported_tiers. * * - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; */ - public Builder setSupportedTiers( + @java.lang.Deprecated public Builder setSupportedTiers( int index, com.google.monitoring.v3.ServiceTier value) { if (value == null) { throw new NullPointerException(); @@ -1726,9 +1726,9 @@ public Builder setSupportedTiers( * must be one of the supported_tiers. * * - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; */ - public Builder addSupportedTiers(com.google.monitoring.v3.ServiceTier value) { + @java.lang.Deprecated public Builder addSupportedTiers(com.google.monitoring.v3.ServiceTier value) { if (value == null) { throw new NullPointerException(); } @@ -1743,9 +1743,9 @@ public Builder addSupportedTiers(com.google.monitoring.v3.ServiceTier value) { * must be one of the supported_tiers. * * - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; */ - public Builder addAllSupportedTiers( + @java.lang.Deprecated public Builder addAllSupportedTiers( java.lang.Iterable values) { ensureSupportedTiersIsMutable(); for (com.google.monitoring.v3.ServiceTier value : values) { @@ -1760,9 +1760,9 @@ public Builder addAllSupportedTiers( * must be one of the supported_tiers. * * - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; */ - public Builder clearSupportedTiers() { + @java.lang.Deprecated public Builder clearSupportedTiers() { supportedTiers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); @@ -1774,9 +1774,9 @@ public Builder clearSupportedTiers() { * must be one of the supported_tiers. * * - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; */ - public java.util.List + @java.lang.Deprecated public java.util.List getSupportedTiersValueList() { return java.util.Collections.unmodifiableList(supportedTiers_); } @@ -1786,9 +1786,9 @@ public Builder clearSupportedTiers() { * must be one of the supported_tiers. * * - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; */ - public int getSupportedTiersValue(int index) { + @java.lang.Deprecated public int getSupportedTiersValue(int index) { return supportedTiers_.get(index); } /** @@ -1797,9 +1797,9 @@ public int getSupportedTiersValue(int index) { * must be one of the supported_tiers. * * - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; */ - public Builder setSupportedTiersValue( + @java.lang.Deprecated public Builder setSupportedTiersValue( int index, int value) { ensureSupportedTiersIsMutable(); supportedTiers_.set(index, value); @@ -1812,9 +1812,9 @@ public Builder setSupportedTiersValue( * must be one of the supported_tiers. * * - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; */ - public Builder addSupportedTiersValue(int value) { + @java.lang.Deprecated public Builder addSupportedTiersValue(int value) { ensureSupportedTiersIsMutable(); supportedTiers_.add(value); onChanged(); @@ -1826,9 +1826,9 @@ public Builder addSupportedTiersValue(int value) { * must be one of the supported_tiers. * * - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; */ - public Builder addAllSupportedTiersValue( + @java.lang.Deprecated public Builder addAllSupportedTiersValue( java.lang.Iterable values) { ensureSupportedTiersIsMutable(); for (int value : values) { diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java index c5fa83e9246c..bb898780fd80 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelDescriptorOrBuilder.java @@ -151,36 +151,36 @@ com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder( * must be one of the supported_tiers. * * - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; */ - java.util.List getSupportedTiersList(); + @java.lang.Deprecated java.util.List getSupportedTiersList(); /** *
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; */ - int getSupportedTiersCount(); + @java.lang.Deprecated int getSupportedTiersCount(); /** *
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; */ - com.google.monitoring.v3.ServiceTier getSupportedTiers(int index); + @java.lang.Deprecated com.google.monitoring.v3.ServiceTier getSupportedTiers(int index); /** *
    * The tiers that support this notification channel; the project service tier
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; */ - java.util.List + @java.lang.Deprecated java.util.List getSupportedTiersValueList(); /** *
@@ -188,7 +188,7 @@ com.google.api.LabelDescriptorOrBuilder getLabelsOrBuilder(
    * must be one of the supported_tiers.
    * 
* - * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5; + * repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true]; */ - int getSupportedTiersValue(int index); + @java.lang.Deprecated int getSupportedTiersValue(int index); } diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java index e8b4eeba4edf..9c7efbad5b1b 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationProto.java @@ -47,31 +47,31 @@ public static void registerAllExtensions( "o\022\024google.monitoring.v3\032\034google/api/anno" + "tations.proto\032\026google/api/label.proto\032!g" + "oogle/monitoring/v3/common.proto\032\036google" + - "/protobuf/wrappers.proto\"\317\001\n\035Notificatio" + + "/protobuf/wrappers.proto\"\323\001\n\035Notificatio" + "nChannelDescriptor\022\014\n\004name\030\006 \001(\t\022\014\n\004type" + "\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\023\n\013descript" + "ion\030\003 \001(\t\022+\n\006labels\030\004 \003(\0132\033.google.api.L" + - "abelDescriptor\022:\n\017supported_tiers\030\005 \003(\0162" + - "!.google.monitoring.v3.ServiceTier\"\266\004\n\023N" + - "otificationChannel\022\014\n\004type\030\001 \001(\t\022\014\n\004name" + - "\030\006 \001(\t\022\024\n\014display_name\030\003 \001(\t\022\023\n\013descript" + - "ion\030\004 \001(\t\022E\n\006labels\030\005 \003(\01325.google.monit" + - "oring.v3.NotificationChannel.LabelsEntry" + - "\022N\n\013user_labels\030\010 \003(\01329.google.monitorin" + - "g.v3.NotificationChannel.UserLabelsEntry" + - "\022Y\n\023verification_status\030\t \001(\0162<.google.m" + - "onitoring.v3.NotificationChannel.Verific" + - "ationStatus\022+\n\007enabled\030\013 \001(\0132\032.google.pr" + - "otobuf.BoolValue\032-\n\013LabelsEntry\022\013\n\003key\030\001" + - " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0321\n\017UserLabelsEnt" + - "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"W\n\022Ve" + - "rificationStatus\022#\n\037VERIFICATION_STATUS_" + - "UNSPECIFIED\020\000\022\016\n\nUNVERIFIED\020\001\022\014\n\010VERIFIE" + - "D\020\002B\251\001\n\030com.google.monitoring.v3B\021Notifi" + - "cationProtoP\001Z>google.golang.org/genprot" + - "o/googleapis/monitoring/v3;monitoring\252\002\032" + - "Google.Cloud.Monitoring.V3\312\002\032Google\\Clou" + - "d\\Monitoring\\V3b\006proto3" + "abelDescriptor\022>\n\017supported_tiers\030\005 \003(\0162" + + "!.google.monitoring.v3.ServiceTierB\002\030\001\"\266" + + "\004\n\023NotificationChannel\022\014\n\004type\030\001 \001(\t\022\014\n\004" + + "name\030\006 \001(\t\022\024\n\014display_name\030\003 \001(\t\022\023\n\013desc" + + "ription\030\004 \001(\t\022E\n\006labels\030\005 \003(\01325.google.m" + + "onitoring.v3.NotificationChannel.LabelsE" + + "ntry\022N\n\013user_labels\030\010 \003(\01329.google.monit" + + "oring.v3.NotificationChannel.UserLabelsE" + + "ntry\022Y\n\023verification_status\030\t \001(\0162<.goog" + + "le.monitoring.v3.NotificationChannel.Ver" + + "ificationStatus\022+\n\007enabled\030\013 \001(\0132\032.googl" + + "e.protobuf.BoolValue\032-\n\013LabelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0321\n\017UserLabel" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"W" + + "\n\022VerificationStatus\022#\n\037VERIFICATION_STA" + + "TUS_UNSPECIFIED\020\000\022\016\n\nUNVERIFIED\020\001\022\014\n\010VER" + + "IFIED\020\002B\251\001\n\030com.google.monitoring.v3B\021No" + + "tificationProtoP\001Z>google.golang.org/gen" + + "proto/googleapis/monitoring/v3;monitorin" + + "g\252\002\032Google.Cloud.Monitoring.V3\312\002\032Google\\" + + "Cloud\\Monitoring\\V3b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Point.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Point.java index 2f32cee0e8b6..c22bc64d1cad 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Point.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/Point.java @@ -108,14 +108,14 @@ private Point( private com.google.monitoring.v3.TimeInterval interval_; /** *
-   * The time interval to which the data point applies.  For GAUGE metrics, only
-   * the end time of the interval is used.  For DELTA metrics, the start and end
-   * time should specify a non-zero interval, with subsequent points specifying
-   * contiguous and non-overlapping intervals.  For CUMULATIVE metrics, the
-   * start and end time should specify a non-zero interval, with subsequent
-   * points specifying the same start time and increasing end times, until an
-   * event resets the cumulative value to zero and sets a new start time for the
-   * following points.
+   * The time interval to which the data point applies.  For `GAUGE` metrics,
+   * only the end time of the interval is used.  For `DELTA` metrics, the start
+   * and end time should specify a non-zero interval, with subsequent points
+   * specifying contiguous and non-overlapping intervals.  For `CUMULATIVE`
+   * metrics, the start and end time should specify a non-zero interval, with
+   * subsequent points specifying the same start time and increasing end times,
+   * until an event resets the cumulative value to zero and sets a new start
+   * time for the following points.
    * 
* * .google.monitoring.v3.TimeInterval interval = 1; @@ -125,14 +125,14 @@ public boolean hasInterval() { } /** *
-   * The time interval to which the data point applies.  For GAUGE metrics, only
-   * the end time of the interval is used.  For DELTA metrics, the start and end
-   * time should specify a non-zero interval, with subsequent points specifying
-   * contiguous and non-overlapping intervals.  For CUMULATIVE metrics, the
-   * start and end time should specify a non-zero interval, with subsequent
-   * points specifying the same start time and increasing end times, until an
-   * event resets the cumulative value to zero and sets a new start time for the
-   * following points.
+   * The time interval to which the data point applies.  For `GAUGE` metrics,
+   * only the end time of the interval is used.  For `DELTA` metrics, the start
+   * and end time should specify a non-zero interval, with subsequent points
+   * specifying contiguous and non-overlapping intervals.  For `CUMULATIVE`
+   * metrics, the start and end time should specify a non-zero interval, with
+   * subsequent points specifying the same start time and increasing end times,
+   * until an event resets the cumulative value to zero and sets a new start
+   * time for the following points.
    * 
* * .google.monitoring.v3.TimeInterval interval = 1; @@ -142,14 +142,14 @@ public com.google.monitoring.v3.TimeInterval getInterval() { } /** *
-   * The time interval to which the data point applies.  For GAUGE metrics, only
-   * the end time of the interval is used.  For DELTA metrics, the start and end
-   * time should specify a non-zero interval, with subsequent points specifying
-   * contiguous and non-overlapping intervals.  For CUMULATIVE metrics, the
-   * start and end time should specify a non-zero interval, with subsequent
-   * points specifying the same start time and increasing end times, until an
-   * event resets the cumulative value to zero and sets a new start time for the
-   * following points.
+   * The time interval to which the data point applies.  For `GAUGE` metrics,
+   * only the end time of the interval is used.  For `DELTA` metrics, the start
+   * and end time should specify a non-zero interval, with subsequent points
+   * specifying contiguous and non-overlapping intervals.  For `CUMULATIVE`
+   * metrics, the start and end time should specify a non-zero interval, with
+   * subsequent points specifying the same start time and increasing end times,
+   * until an event resets the cumulative value to zero and sets a new start
+   * time for the following points.
    * 
* * .google.monitoring.v3.TimeInterval interval = 1; @@ -546,14 +546,14 @@ public Builder mergeFrom( com.google.monitoring.v3.TimeInterval, com.google.monitoring.v3.TimeInterval.Builder, com.google.monitoring.v3.TimeIntervalOrBuilder> intervalBuilder_; /** *
-     * The time interval to which the data point applies.  For GAUGE metrics, only
-     * the end time of the interval is used.  For DELTA metrics, the start and end
-     * time should specify a non-zero interval, with subsequent points specifying
-     * contiguous and non-overlapping intervals.  For CUMULATIVE metrics, the
-     * start and end time should specify a non-zero interval, with subsequent
-     * points specifying the same start time and increasing end times, until an
-     * event resets the cumulative value to zero and sets a new start time for the
-     * following points.
+     * The time interval to which the data point applies.  For `GAUGE` metrics,
+     * only the end time of the interval is used.  For `DELTA` metrics, the start
+     * and end time should specify a non-zero interval, with subsequent points
+     * specifying contiguous and non-overlapping intervals.  For `CUMULATIVE`
+     * metrics, the start and end time should specify a non-zero interval, with
+     * subsequent points specifying the same start time and increasing end times,
+     * until an event resets the cumulative value to zero and sets a new start
+     * time for the following points.
      * 
* * .google.monitoring.v3.TimeInterval interval = 1; @@ -563,14 +563,14 @@ public boolean hasInterval() { } /** *
-     * The time interval to which the data point applies.  For GAUGE metrics, only
-     * the end time of the interval is used.  For DELTA metrics, the start and end
-     * time should specify a non-zero interval, with subsequent points specifying
-     * contiguous and non-overlapping intervals.  For CUMULATIVE metrics, the
-     * start and end time should specify a non-zero interval, with subsequent
-     * points specifying the same start time and increasing end times, until an
-     * event resets the cumulative value to zero and sets a new start time for the
-     * following points.
+     * The time interval to which the data point applies.  For `GAUGE` metrics,
+     * only the end time of the interval is used.  For `DELTA` metrics, the start
+     * and end time should specify a non-zero interval, with subsequent points
+     * specifying contiguous and non-overlapping intervals.  For `CUMULATIVE`
+     * metrics, the start and end time should specify a non-zero interval, with
+     * subsequent points specifying the same start time and increasing end times,
+     * until an event resets the cumulative value to zero and sets a new start
+     * time for the following points.
      * 
* * .google.monitoring.v3.TimeInterval interval = 1; @@ -584,14 +584,14 @@ public com.google.monitoring.v3.TimeInterval getInterval() { } /** *
-     * The time interval to which the data point applies.  For GAUGE metrics, only
-     * the end time of the interval is used.  For DELTA metrics, the start and end
-     * time should specify a non-zero interval, with subsequent points specifying
-     * contiguous and non-overlapping intervals.  For CUMULATIVE metrics, the
-     * start and end time should specify a non-zero interval, with subsequent
-     * points specifying the same start time and increasing end times, until an
-     * event resets the cumulative value to zero and sets a new start time for the
-     * following points.
+     * The time interval to which the data point applies.  For `GAUGE` metrics,
+     * only the end time of the interval is used.  For `DELTA` metrics, the start
+     * and end time should specify a non-zero interval, with subsequent points
+     * specifying contiguous and non-overlapping intervals.  For `CUMULATIVE`
+     * metrics, the start and end time should specify a non-zero interval, with
+     * subsequent points specifying the same start time and increasing end times,
+     * until an event resets the cumulative value to zero and sets a new start
+     * time for the following points.
      * 
* * .google.monitoring.v3.TimeInterval interval = 1; @@ -611,14 +611,14 @@ public Builder setInterval(com.google.monitoring.v3.TimeInterval value) { } /** *
-     * The time interval to which the data point applies.  For GAUGE metrics, only
-     * the end time of the interval is used.  For DELTA metrics, the start and end
-     * time should specify a non-zero interval, with subsequent points specifying
-     * contiguous and non-overlapping intervals.  For CUMULATIVE metrics, the
-     * start and end time should specify a non-zero interval, with subsequent
-     * points specifying the same start time and increasing end times, until an
-     * event resets the cumulative value to zero and sets a new start time for the
-     * following points.
+     * The time interval to which the data point applies.  For `GAUGE` metrics,
+     * only the end time of the interval is used.  For `DELTA` metrics, the start
+     * and end time should specify a non-zero interval, with subsequent points
+     * specifying contiguous and non-overlapping intervals.  For `CUMULATIVE`
+     * metrics, the start and end time should specify a non-zero interval, with
+     * subsequent points specifying the same start time and increasing end times,
+     * until an event resets the cumulative value to zero and sets a new start
+     * time for the following points.
      * 
* * .google.monitoring.v3.TimeInterval interval = 1; @@ -636,14 +636,14 @@ public Builder setInterval( } /** *
-     * The time interval to which the data point applies.  For GAUGE metrics, only
-     * the end time of the interval is used.  For DELTA metrics, the start and end
-     * time should specify a non-zero interval, with subsequent points specifying
-     * contiguous and non-overlapping intervals.  For CUMULATIVE metrics, the
-     * start and end time should specify a non-zero interval, with subsequent
-     * points specifying the same start time and increasing end times, until an
-     * event resets the cumulative value to zero and sets a new start time for the
-     * following points.
+     * The time interval to which the data point applies.  For `GAUGE` metrics,
+     * only the end time of the interval is used.  For `DELTA` metrics, the start
+     * and end time should specify a non-zero interval, with subsequent points
+     * specifying contiguous and non-overlapping intervals.  For `CUMULATIVE`
+     * metrics, the start and end time should specify a non-zero interval, with
+     * subsequent points specifying the same start time and increasing end times,
+     * until an event resets the cumulative value to zero and sets a new start
+     * time for the following points.
      * 
* * .google.monitoring.v3.TimeInterval interval = 1; @@ -665,14 +665,14 @@ public Builder mergeInterval(com.google.monitoring.v3.TimeInterval value) { } /** *
-     * The time interval to which the data point applies.  For GAUGE metrics, only
-     * the end time of the interval is used.  For DELTA metrics, the start and end
-     * time should specify a non-zero interval, with subsequent points specifying
-     * contiguous and non-overlapping intervals.  For CUMULATIVE metrics, the
-     * start and end time should specify a non-zero interval, with subsequent
-     * points specifying the same start time and increasing end times, until an
-     * event resets the cumulative value to zero and sets a new start time for the
-     * following points.
+     * The time interval to which the data point applies.  For `GAUGE` metrics,
+     * only the end time of the interval is used.  For `DELTA` metrics, the start
+     * and end time should specify a non-zero interval, with subsequent points
+     * specifying contiguous and non-overlapping intervals.  For `CUMULATIVE`
+     * metrics, the start and end time should specify a non-zero interval, with
+     * subsequent points specifying the same start time and increasing end times,
+     * until an event resets the cumulative value to zero and sets a new start
+     * time for the following points.
      * 
* * .google.monitoring.v3.TimeInterval interval = 1; @@ -690,14 +690,14 @@ public Builder clearInterval() { } /** *
-     * The time interval to which the data point applies.  For GAUGE metrics, only
-     * the end time of the interval is used.  For DELTA metrics, the start and end
-     * time should specify a non-zero interval, with subsequent points specifying
-     * contiguous and non-overlapping intervals.  For CUMULATIVE metrics, the
-     * start and end time should specify a non-zero interval, with subsequent
-     * points specifying the same start time and increasing end times, until an
-     * event resets the cumulative value to zero and sets a new start time for the
-     * following points.
+     * The time interval to which the data point applies.  For `GAUGE` metrics,
+     * only the end time of the interval is used.  For `DELTA` metrics, the start
+     * and end time should specify a non-zero interval, with subsequent points
+     * specifying contiguous and non-overlapping intervals.  For `CUMULATIVE`
+     * metrics, the start and end time should specify a non-zero interval, with
+     * subsequent points specifying the same start time and increasing end times,
+     * until an event resets the cumulative value to zero and sets a new start
+     * time for the following points.
      * 
* * .google.monitoring.v3.TimeInterval interval = 1; @@ -709,14 +709,14 @@ public com.google.monitoring.v3.TimeInterval.Builder getIntervalBuilder() { } /** *
-     * The time interval to which the data point applies.  For GAUGE metrics, only
-     * the end time of the interval is used.  For DELTA metrics, the start and end
-     * time should specify a non-zero interval, with subsequent points specifying
-     * contiguous and non-overlapping intervals.  For CUMULATIVE metrics, the
-     * start and end time should specify a non-zero interval, with subsequent
-     * points specifying the same start time and increasing end times, until an
-     * event resets the cumulative value to zero and sets a new start time for the
-     * following points.
+     * The time interval to which the data point applies.  For `GAUGE` metrics,
+     * only the end time of the interval is used.  For `DELTA` metrics, the start
+     * and end time should specify a non-zero interval, with subsequent points
+     * specifying contiguous and non-overlapping intervals.  For `CUMULATIVE`
+     * metrics, the start and end time should specify a non-zero interval, with
+     * subsequent points specifying the same start time and increasing end times,
+     * until an event resets the cumulative value to zero and sets a new start
+     * time for the following points.
      * 
* * .google.monitoring.v3.TimeInterval interval = 1; @@ -731,14 +731,14 @@ public com.google.monitoring.v3.TimeIntervalOrBuilder getIntervalOrBuilder() { } /** *
-     * The time interval to which the data point applies.  For GAUGE metrics, only
-     * the end time of the interval is used.  For DELTA metrics, the start and end
-     * time should specify a non-zero interval, with subsequent points specifying
-     * contiguous and non-overlapping intervals.  For CUMULATIVE metrics, the
-     * start and end time should specify a non-zero interval, with subsequent
-     * points specifying the same start time and increasing end times, until an
-     * event resets the cumulative value to zero and sets a new start time for the
-     * following points.
+     * The time interval to which the data point applies.  For `GAUGE` metrics,
+     * only the end time of the interval is used.  For `DELTA` metrics, the start
+     * and end time should specify a non-zero interval, with subsequent points
+     * specifying contiguous and non-overlapping intervals.  For `CUMULATIVE`
+     * metrics, the start and end time should specify a non-zero interval, with
+     * subsequent points specifying the same start time and increasing end times,
+     * until an event resets the cumulative value to zero and sets a new start
+     * time for the following points.
      * 
* * .google.monitoring.v3.TimeInterval interval = 1; diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/PointOrBuilder.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/PointOrBuilder.java index 961cf7bb268e..f885a1340298 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/PointOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/PointOrBuilder.java @@ -9,14 +9,14 @@ public interface PointOrBuilder extends /** *
-   * The time interval to which the data point applies.  For GAUGE metrics, only
-   * the end time of the interval is used.  For DELTA metrics, the start and end
-   * time should specify a non-zero interval, with subsequent points specifying
-   * contiguous and non-overlapping intervals.  For CUMULATIVE metrics, the
-   * start and end time should specify a non-zero interval, with subsequent
-   * points specifying the same start time and increasing end times, until an
-   * event resets the cumulative value to zero and sets a new start time for the
-   * following points.
+   * The time interval to which the data point applies.  For `GAUGE` metrics,
+   * only the end time of the interval is used.  For `DELTA` metrics, the start
+   * and end time should specify a non-zero interval, with subsequent points
+   * specifying contiguous and non-overlapping intervals.  For `CUMULATIVE`
+   * metrics, the start and end time should specify a non-zero interval, with
+   * subsequent points specifying the same start time and increasing end times,
+   * until an event resets the cumulative value to zero and sets a new start
+   * time for the following points.
    * 
* * .google.monitoring.v3.TimeInterval interval = 1; @@ -24,14 +24,14 @@ public interface PointOrBuilder extends boolean hasInterval(); /** *
-   * The time interval to which the data point applies.  For GAUGE metrics, only
-   * the end time of the interval is used.  For DELTA metrics, the start and end
-   * time should specify a non-zero interval, with subsequent points specifying
-   * contiguous and non-overlapping intervals.  For CUMULATIVE metrics, the
-   * start and end time should specify a non-zero interval, with subsequent
-   * points specifying the same start time and increasing end times, until an
-   * event resets the cumulative value to zero and sets a new start time for the
-   * following points.
+   * The time interval to which the data point applies.  For `GAUGE` metrics,
+   * only the end time of the interval is used.  For `DELTA` metrics, the start
+   * and end time should specify a non-zero interval, with subsequent points
+   * specifying contiguous and non-overlapping intervals.  For `CUMULATIVE`
+   * metrics, the start and end time should specify a non-zero interval, with
+   * subsequent points specifying the same start time and increasing end times,
+   * until an event resets the cumulative value to zero and sets a new start
+   * time for the following points.
    * 
* * .google.monitoring.v3.TimeInterval interval = 1; @@ -39,14 +39,14 @@ public interface PointOrBuilder extends com.google.monitoring.v3.TimeInterval getInterval(); /** *
-   * The time interval to which the data point applies.  For GAUGE metrics, only
-   * the end time of the interval is used.  For DELTA metrics, the start and end
-   * time should specify a non-zero interval, with subsequent points specifying
-   * contiguous and non-overlapping intervals.  For CUMULATIVE metrics, the
-   * start and end time should specify a non-zero interval, with subsequent
-   * points specifying the same start time and increasing end times, until an
-   * event resets the cumulative value to zero and sets a new start time for the
-   * following points.
+   * The time interval to which the data point applies.  For `GAUGE` metrics,
+   * only the end time of the interval is used.  For `DELTA` metrics, the start
+   * and end time should specify a non-zero interval, with subsequent points
+   * specifying contiguous and non-overlapping intervals.  For `CUMULATIVE`
+   * metrics, the start and end time should specify a non-zero interval, with
+   * subsequent points specifying the same start time and increasing end times,
+   * until an event resets the cumulative value to zero and sets a new start
+   * time for the following points.
    * 
* * .google.monitoring.v3.TimeInterval interval = 1; diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java new file mode 100644 index 000000000000..25778b708c55 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContext.java @@ -0,0 +1,618 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/span_context.proto + +package com.google.monitoring.v3; + +/** + *
+ * The context of a span, attached to google.api.Distribution.Exemplars
+ * in google.api.Distribution values during aggregation.
+ * It contains the name of a span with format:
+ *     projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
+ * 
+ * + * Protobuf type {@code google.monitoring.v3.SpanContext} + */ +public final class SpanContext extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.monitoring.v3.SpanContext) + SpanContextOrBuilder { +private static final long serialVersionUID = 0L; + // Use SpanContext.newBuilder() to construct. + private SpanContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SpanContext() { + spanName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SpanContext( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + spanName_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + 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.SpanContextProto.internal_static_google_monitoring_v3_SpanContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.v3.SpanContextProto.internal_static_google_monitoring_v3_SpanContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.v3.SpanContext.class, com.google.monitoring.v3.SpanContext.Builder.class); + } + + public static final int SPAN_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object spanName_; + /** + *
+   * 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;
+   * 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
+   * is a 16-character hexadecimal encoding of an 8-byte array.
+   * 
+ * + * string span_name = 1; + */ + public java.lang.String getSpanName() { + java.lang.Object ref = spanName_; + 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(); + spanName_ = s; + return s; + } + } + /** + *
+   * 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;
+   * 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
+   * is a 16-character hexadecimal encoding of an 8-byte array.
+   * 
+ * + * string span_name = 1; + */ + public com.google.protobuf.ByteString + getSpanNameBytes() { + java.lang.Object ref = spanName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + spanName_ = 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 (!getSpanNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, spanName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSpanNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, spanName_); + } + 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.SpanContext)) { + return super.equals(obj); + } + com.google.monitoring.v3.SpanContext other = (com.google.monitoring.v3.SpanContext) obj; + + boolean result = true; + result = result && getSpanName() + .equals(other.getSpanName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SPAN_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSpanName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.v3.SpanContext parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.v3.SpanContext 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.SpanContext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.v3.SpanContext 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.SpanContext parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.monitoring.v3.SpanContext parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.monitoring.v3.SpanContext parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.monitoring.v3.SpanContext 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.SpanContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.monitoring.v3.SpanContext 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.SpanContext parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.monitoring.v3.SpanContext 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.SpanContext 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 context of a span, attached to google.api.Distribution.Exemplars
+   * in google.api.Distribution values during aggregation.
+   * It contains the name of a span with format:
+   *     projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
+   * 
+ * + * Protobuf type {@code google.monitoring.v3.SpanContext} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.monitoring.v3.SpanContext) + com.google.monitoring.v3.SpanContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.monitoring.v3.SpanContextProto.internal_static_google_monitoring_v3_SpanContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.v3.SpanContextProto.internal_static_google_monitoring_v3_SpanContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.v3.SpanContext.class, com.google.monitoring.v3.SpanContext.Builder.class); + } + + // Construct using com.google.monitoring.v3.SpanContext.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + spanName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.monitoring.v3.SpanContextProto.internal_static_google_monitoring_v3_SpanContext_descriptor; + } + + @java.lang.Override + public com.google.monitoring.v3.SpanContext getDefaultInstanceForType() { + return com.google.monitoring.v3.SpanContext.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.v3.SpanContext build() { + com.google.monitoring.v3.SpanContext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.monitoring.v3.SpanContext buildPartial() { + com.google.monitoring.v3.SpanContext result = new com.google.monitoring.v3.SpanContext(this); + result.spanName_ = spanName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.monitoring.v3.SpanContext) { + return mergeFrom((com.google.monitoring.v3.SpanContext)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.v3.SpanContext other) { + if (other == com.google.monitoring.v3.SpanContext.getDefaultInstance()) return this; + if (!other.getSpanName().isEmpty()) { + spanName_ = other.spanName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.monitoring.v3.SpanContext parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.monitoring.v3.SpanContext) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object spanName_ = ""; + /** + *
+     * 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;
+     * 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
+     * is a 16-character hexadecimal encoding of an 8-byte array.
+     * 
+ * + * string span_name = 1; + */ + public java.lang.String getSpanName() { + java.lang.Object ref = spanName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + spanName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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;
+     * 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
+     * is a 16-character hexadecimal encoding of an 8-byte array.
+     * 
+ * + * string span_name = 1; + */ + public com.google.protobuf.ByteString + getSpanNameBytes() { + java.lang.Object ref = spanName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + spanName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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;
+     * 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
+     * is a 16-character hexadecimal encoding of an 8-byte array.
+     * 
+ * + * string span_name = 1; + */ + public Builder setSpanName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + spanName_ = value; + onChanged(); + return this; + } + /** + *
+     * 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;
+     * 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
+     * is a 16-character hexadecimal encoding of an 8-byte array.
+     * 
+ * + * string span_name = 1; + */ + public Builder clearSpanName() { + + spanName_ = getDefaultInstance().getSpanName(); + onChanged(); + return this; + } + /** + *
+     * 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;
+     * 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
+     * is a 16-character hexadecimal encoding of an 8-byte array.
+     * 
+ * + * string span_name = 1; + */ + public Builder setSpanNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + spanName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(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.SpanContext) + } + + // @@protoc_insertion_point(class_scope:google.monitoring.v3.SpanContext) + private static final com.google.monitoring.v3.SpanContext DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.monitoring.v3.SpanContext(); + } + + public static com.google.monitoring.v3.SpanContext getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpanContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpanContext(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.monitoring.v3.SpanContext getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextOrBuilder.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextOrBuilder.java new file mode 100644 index 000000000000..6ae4f3ddc5e7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/span_context.proto + +package com.google.monitoring.v3; + +public interface SpanContextOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.SpanContext) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * 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;
+   * 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
+   * is a 16-character hexadecimal encoding of an 8-byte array.
+   * 
+ * + * string span_name = 1; + */ + 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;
+   * 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
+   * is a 16-character hexadecimal encoding of an 8-byte array.
+   * 
+ * + * string span_name = 1; + */ + com.google.protobuf.ByteString + getSpanNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextProto.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextProto.java new file mode 100644 index 000000000000..ad86d5f0ef2a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/SpanContextProto.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/span_context.proto + +package com.google.monitoring.v3; + +public final class SpanContextProto { + private SpanContextProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_SpanContext_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_SpanContext_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'google/monitoring/v3/span_context.prot" + + "o\022\024google.monitoring.v3\" \n\013SpanContext\022\021" + + "\n\tspan_name\030\001 \001(\tB\250\001\n\030com.google.monitor" + + "ing.v3B\020SpanContextProtoP\001Z>google.golan" + + "g.org/genproto/googleapis/monitoring/v3;" + + "monitoring\252\002\032Google.Cloud.Monitoring.V3\312" + + "\002\032Google\\Cloud\\Monitoring\\V3b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_google_monitoring_v3_SpanContext_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_SpanContext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_SpanContext_descriptor, + new java.lang.String[] { "SpanName", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java index 65598e5c806c..0bdc046c17ea 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeries.java @@ -91,14 +91,27 @@ private TimeSeries( break; } case 42: { - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { points_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; + mutable_bitField0_ |= 0x00000020; } points_.add( input.readMessage(com.google.monitoring.v3.Point.parser(), extensionRegistry)); break; } + case 58: { + com.google.api.MonitoredResourceMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(com.google.api.MonitoredResourceMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -114,7 +127,7 @@ private TimeSeries( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { points_ = java.util.Collections.unmodifiableList(points_); } this.unknownFields = unknownFields.build(); @@ -175,8 +188,8 @@ public com.google.api.MetricOrBuilder getMetricOrBuilder() { private com.google.api.MonitoredResource resource_; /** *
-   * The associated resource. A fully-specified monitored resource used to
-   * identify the time series.
+   * The associated monitored resource.  Custom metrics can use only certain
+   * monitored resource types in their time series data.
    * 
* * .google.api.MonitoredResource resource = 2; @@ -186,8 +199,8 @@ public boolean hasResource() { } /** *
-   * The associated resource. A fully-specified monitored resource used to
-   * identify the time series.
+   * The associated monitored resource.  Custom metrics can use only certain
+   * monitored resource types in their time series data.
    * 
* * .google.api.MonitoredResource resource = 2; @@ -197,8 +210,8 @@ public com.google.api.MonitoredResource getResource() { } /** *
-   * The associated resource. A fully-specified monitored resource used to
-   * identify the time series.
+   * The associated monitored resource.  Custom metrics can use only certain
+   * monitored resource types in their time series data.
    * 
* * .google.api.MonitoredResource resource = 2; @@ -207,6 +220,45 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() { return getResource(); } + public static final int METADATA_FIELD_NUMBER = 7; + private com.google.api.MonitoredResourceMetadata metadata_; + /** + *
+   * Output only. The associated monitored resource metadata. When reading a
+   * a timeseries, this field will include metadata labels that are explicitly
+   * named in the reduction. When creating a timeseries, this field is ignored.
+   * 
+ * + * .google.api.MonitoredResourceMetadata metadata = 7; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+   * Output only. The associated monitored resource metadata. When reading a
+   * a timeseries, this field will include metadata labels that are explicitly
+   * named in the reduction. When creating a timeseries, this field is ignored.
+   * 
+ * + * .google.api.MonitoredResourceMetadata metadata = 7; + */ + public com.google.api.MonitoredResourceMetadata getMetadata() { + return metadata_ == null ? com.google.api.MonitoredResourceMetadata.getDefaultInstance() : metadata_; + } + /** + *
+   * Output only. The associated monitored resource metadata. When reading a
+   * a timeseries, this field will include metadata labels that are explicitly
+   * named in the reduction. When creating a timeseries, this field is ignored.
+   * 
+ * + * .google.api.MonitoredResourceMetadata metadata = 7; + */ + public com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + public static final int METRIC_KIND_FIELD_NUMBER = 3; private int metricKind_; /** @@ -283,8 +335,8 @@ public com.google.api.MetricDescriptor.ValueType getValueType() { private java.util.List points_; /** *
-   * The data points of this time series. When listing time series, the order of
-   * the points is specified by the list method.
+   * The data points of this time series. When listing time series, points are
+   * returned in reverse time order.
    * When creating a time series, this field must contain exactly one point and
    * the point's type must be the same as the value type of the associated
    * metric. If the associated metric's descriptor must be auto-created, then
@@ -299,8 +351,8 @@ public java.util.List getPointsList() {
   }
   /**
    * 
-   * The data points of this time series. When listing time series, the order of
-   * the points is specified by the list method.
+   * The data points of this time series. When listing time series, points are
+   * returned in reverse time order.
    * When creating a time series, this field must contain exactly one point and
    * the point's type must be the same as the value type of the associated
    * metric. If the associated metric's descriptor must be auto-created, then
@@ -316,8 +368,8 @@ public java.util.List getPointsList() {
   }
   /**
    * 
-   * The data points of this time series. When listing time series, the order of
-   * the points is specified by the list method.
+   * The data points of this time series. When listing time series, points are
+   * returned in reverse time order.
    * When creating a time series, this field must contain exactly one point and
    * the point's type must be the same as the value type of the associated
    * metric. If the associated metric's descriptor must be auto-created, then
@@ -332,8 +384,8 @@ public int getPointsCount() {
   }
   /**
    * 
-   * The data points of this time series. When listing time series, the order of
-   * the points is specified by the list method.
+   * The data points of this time series. When listing time series, points are
+   * returned in reverse time order.
    * When creating a time series, this field must contain exactly one point and
    * the point's type must be the same as the value type of the associated
    * metric. If the associated metric's descriptor must be auto-created, then
@@ -348,8 +400,8 @@ public com.google.monitoring.v3.Point getPoints(int index) {
   }
   /**
    * 
-   * The data points of this time series. When listing time series, the order of
-   * the points is specified by the list method.
+   * The data points of this time series. When listing time series, points are
+   * returned in reverse time order.
    * When creating a time series, this field must contain exactly one point and
    * the point's type must be the same as the value type of the associated
    * metric. If the associated metric's descriptor must be auto-created, then
@@ -393,6 +445,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     for (int i = 0; i < points_.size(); i++) {
       output.writeMessage(5, points_.get(i));
     }
+    if (metadata_ != null) {
+      output.writeMessage(7, getMetadata());
+    }
     unknownFields.writeTo(output);
   }
 
@@ -422,6 +477,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
         .computeMessageSize(5, points_.get(i));
     }
+    if (metadata_ != null) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getMetadata());
+    }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
     return size;
@@ -448,6 +507,11 @@ public boolean equals(final java.lang.Object obj) {
       result = result && getResource()
           .equals(other.getResource());
     }
+    result = result && (hasMetadata() == other.hasMetadata());
+    if (hasMetadata()) {
+      result = result && getMetadata()
+          .equals(other.getMetadata());
+    }
     result = result && metricKind_ == other.metricKind_;
     result = result && valueType_ == other.valueType_;
     result = result && getPointsList()
@@ -471,6 +535,10 @@ public int hashCode() {
       hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
       hash = (53 * hash) + getResource().hashCode();
     }
+    if (hasMetadata()) {
+      hash = (37 * hash) + METADATA_FIELD_NUMBER;
+      hash = (53 * hash) + getMetadata().hashCode();
+    }
     hash = (37 * hash) + METRIC_KIND_FIELD_NUMBER;
     hash = (53 * hash) + metricKind_;
     hash = (37 * hash) + VALUE_TYPE_FIELD_NUMBER;
@@ -632,13 +700,19 @@ public Builder clear() {
         resource_ = null;
         resourceBuilder_ = null;
       }
+      if (metadataBuilder_ == null) {
+        metadata_ = null;
+      } else {
+        metadata_ = null;
+        metadataBuilder_ = null;
+      }
       metricKind_ = 0;
 
       valueType_ = 0;
 
       if (pointsBuilder_ == null) {
         points_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000010);
+        bitField0_ = (bitField0_ & ~0x00000020);
       } else {
         pointsBuilder_.clear();
       }
@@ -680,12 +754,17 @@ public com.google.monitoring.v3.TimeSeries buildPartial() {
       } else {
         result.resource_ = resourceBuilder_.build();
       }
+      if (metadataBuilder_ == null) {
+        result.metadata_ = metadata_;
+      } else {
+        result.metadata_ = metadataBuilder_.build();
+      }
       result.metricKind_ = metricKind_;
       result.valueType_ = valueType_;
       if (pointsBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) == 0x00000010)) {
+        if (((bitField0_ & 0x00000020) == 0x00000020)) {
           points_ = java.util.Collections.unmodifiableList(points_);
-          bitField0_ = (bitField0_ & ~0x00000010);
+          bitField0_ = (bitField0_ & ~0x00000020);
         }
         result.points_ = points_;
       } else {
@@ -746,6 +825,9 @@ public Builder mergeFrom(com.google.monitoring.v3.TimeSeries other) {
       if (other.hasResource()) {
         mergeResource(other.getResource());
       }
+      if (other.hasMetadata()) {
+        mergeMetadata(other.getMetadata());
+      }
       if (other.metricKind_ != 0) {
         setMetricKindValue(other.getMetricKindValue());
       }
@@ -756,7 +838,7 @@ public Builder mergeFrom(com.google.monitoring.v3.TimeSeries other) {
         if (!other.points_.isEmpty()) {
           if (points_.isEmpty()) {
             points_ = other.points_;
-            bitField0_ = (bitField0_ & ~0x00000010);
+            bitField0_ = (bitField0_ & ~0x00000020);
           } else {
             ensurePointsIsMutable();
             points_.addAll(other.points_);
@@ -769,7 +851,7 @@ public Builder mergeFrom(com.google.monitoring.v3.TimeSeries other) {
             pointsBuilder_.dispose();
             pointsBuilder_ = null;
             points_ = other.points_;
-            bitField0_ = (bitField0_ & ~0x00000010);
+            bitField0_ = (bitField0_ & ~0x00000020);
             pointsBuilder_ = 
               com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                  getPointsFieldBuilder() : null;
@@ -975,8 +1057,8 @@ public com.google.api.MetricOrBuilder getMetricOrBuilder() {
         com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> resourceBuilder_;
     /**
      * 
-     * The associated resource. A fully-specified monitored resource used to
-     * identify the time series.
+     * The associated monitored resource.  Custom metrics can use only certain
+     * monitored resource types in their time series data.
      * 
* * .google.api.MonitoredResource resource = 2; @@ -986,8 +1068,8 @@ public boolean hasResource() { } /** *
-     * The associated resource. A fully-specified monitored resource used to
-     * identify the time series.
+     * The associated monitored resource.  Custom metrics can use only certain
+     * monitored resource types in their time series data.
      * 
* * .google.api.MonitoredResource resource = 2; @@ -1001,8 +1083,8 @@ public com.google.api.MonitoredResource getResource() { } /** *
-     * The associated resource. A fully-specified monitored resource used to
-     * identify the time series.
+     * The associated monitored resource.  Custom metrics can use only certain
+     * monitored resource types in their time series data.
      * 
* * .google.api.MonitoredResource resource = 2; @@ -1022,8 +1104,8 @@ public Builder setResource(com.google.api.MonitoredResource value) { } /** *
-     * The associated resource. A fully-specified monitored resource used to
-     * identify the time series.
+     * The associated monitored resource.  Custom metrics can use only certain
+     * monitored resource types in their time series data.
      * 
* * .google.api.MonitoredResource resource = 2; @@ -1041,8 +1123,8 @@ public Builder setResource( } /** *
-     * The associated resource. A fully-specified monitored resource used to
-     * identify the time series.
+     * The associated monitored resource.  Custom metrics can use only certain
+     * monitored resource types in their time series data.
      * 
* * .google.api.MonitoredResource resource = 2; @@ -1064,8 +1146,8 @@ public Builder mergeResource(com.google.api.MonitoredResource value) { } /** *
-     * The associated resource. A fully-specified monitored resource used to
-     * identify the time series.
+     * The associated monitored resource.  Custom metrics can use only certain
+     * monitored resource types in their time series data.
      * 
* * .google.api.MonitoredResource resource = 2; @@ -1083,8 +1165,8 @@ public Builder clearResource() { } /** *
-     * The associated resource. A fully-specified monitored resource used to
-     * identify the time series.
+     * The associated monitored resource.  Custom metrics can use only certain
+     * monitored resource types in their time series data.
      * 
* * .google.api.MonitoredResource resource = 2; @@ -1096,8 +1178,8 @@ public com.google.api.MonitoredResource.Builder getResourceBuilder() { } /** *
-     * The associated resource. A fully-specified monitored resource used to
-     * identify the time series.
+     * The associated monitored resource.  Custom metrics can use only certain
+     * monitored resource types in their time series data.
      * 
* * .google.api.MonitoredResource resource = 2; @@ -1112,8 +1194,8 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() { } /** *
-     * The associated resource. A fully-specified monitored resource used to
-     * identify the time series.
+     * The associated monitored resource.  Custom metrics can use only certain
+     * monitored resource types in their time series data.
      * 
* * .google.api.MonitoredResource resource = 2; @@ -1132,6 +1214,177 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() { return resourceBuilder_; } + private com.google.api.MonitoredResourceMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.api.MonitoredResourceMetadata, com.google.api.MonitoredResourceMetadata.Builder, com.google.api.MonitoredResourceMetadataOrBuilder> metadataBuilder_; + /** + *
+     * Output only. The associated monitored resource metadata. When reading a
+     * a timeseries, this field will include metadata labels that are explicitly
+     * named in the reduction. When creating a timeseries, this field is ignored.
+     * 
+ * + * .google.api.MonitoredResourceMetadata metadata = 7; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+     * Output only. The associated monitored resource metadata. When reading a
+     * a timeseries, this field will include metadata labels that are explicitly
+     * named in the reduction. When creating a timeseries, this field is ignored.
+     * 
+ * + * .google.api.MonitoredResourceMetadata metadata = 7; + */ + public com.google.api.MonitoredResourceMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? com.google.api.MonitoredResourceMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+     * Output only. The associated monitored resource metadata. When reading a
+     * a timeseries, this field will include metadata labels that are explicitly
+     * named in the reduction. When creating a timeseries, this field is ignored.
+     * 
+ * + * .google.api.MonitoredResourceMetadata metadata = 7; + */ + public Builder setMetadata(com.google.api.MonitoredResourceMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The associated monitored resource metadata. When reading a
+     * a timeseries, this field will include metadata labels that are explicitly
+     * named in the reduction. When creating a timeseries, this field is ignored.
+     * 
+ * + * .google.api.MonitoredResourceMetadata metadata = 7; + */ + public Builder setMetadata( + com.google.api.MonitoredResourceMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The associated monitored resource metadata. When reading a
+     * a timeseries, this field will include metadata labels that are explicitly
+     * named in the reduction. When creating a timeseries, this field is ignored.
+     * 
+ * + * .google.api.MonitoredResourceMetadata metadata = 7; + */ + public Builder mergeMetadata(com.google.api.MonitoredResourceMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.api.MonitoredResourceMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The associated monitored resource metadata. When reading a
+     * a timeseries, this field will include metadata labels that are explicitly
+     * named in the reduction. When creating a timeseries, this field is ignored.
+     * 
+ * + * .google.api.MonitoredResourceMetadata metadata = 7; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The associated monitored resource metadata. When reading a
+     * a timeseries, this field will include metadata labels that are explicitly
+     * named in the reduction. When creating a timeseries, this field is ignored.
+     * 
+ * + * .google.api.MonitoredResourceMetadata metadata = 7; + */ + public com.google.api.MonitoredResourceMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. The associated monitored resource metadata. When reading a
+     * a timeseries, this field will include metadata labels that are explicitly
+     * named in the reduction. When creating a timeseries, this field is ignored.
+     * 
+ * + * .google.api.MonitoredResourceMetadata metadata = 7; + */ + public com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + com.google.api.MonitoredResourceMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+     * Output only. The associated monitored resource metadata. When reading a
+     * a timeseries, this field will include metadata labels that are explicitly
+     * named in the reduction. When creating a timeseries, this field is ignored.
+     * 
+ * + * .google.api.MonitoredResourceMetadata metadata = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.api.MonitoredResourceMetadata, com.google.api.MonitoredResourceMetadata.Builder, com.google.api.MonitoredResourceMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.MonitoredResourceMetadata, com.google.api.MonitoredResourceMetadata.Builder, com.google.api.MonitoredResourceMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + private int metricKind_ = 0; /** *
@@ -1320,9 +1573,9 @@ public Builder clearValueType() {
     private java.util.List points_ =
       java.util.Collections.emptyList();
     private void ensurePointsIsMutable() {
-      if (!((bitField0_ & 0x00000010) == 0x00000010)) {
+      if (!((bitField0_ & 0x00000020) == 0x00000020)) {
         points_ = new java.util.ArrayList(points_);
-        bitField0_ |= 0x00000010;
+        bitField0_ |= 0x00000020;
        }
     }
 
@@ -1331,8 +1584,8 @@ private void ensurePointsIsMutable() {
 
     /**
      * 
-     * The data points of this time series. When listing time series, the order of
-     * the points is specified by the list method.
+     * The data points of this time series. When listing time series, points are
+     * returned in reverse time order.
      * When creating a time series, this field must contain exactly one point and
      * the point's type must be the same as the value type of the associated
      * metric. If the associated metric's descriptor must be auto-created, then
@@ -1351,8 +1604,8 @@ public java.util.List getPointsList() {
     }
     /**
      * 
-     * The data points of this time series. When listing time series, the order of
-     * the points is specified by the list method.
+     * The data points of this time series. When listing time series, points are
+     * returned in reverse time order.
      * When creating a time series, this field must contain exactly one point and
      * the point's type must be the same as the value type of the associated
      * metric. If the associated metric's descriptor must be auto-created, then
@@ -1371,8 +1624,8 @@ public int getPointsCount() {
     }
     /**
      * 
-     * The data points of this time series. When listing time series, the order of
-     * the points is specified by the list method.
+     * The data points of this time series. When listing time series, points are
+     * returned in reverse time order.
      * When creating a time series, this field must contain exactly one point and
      * the point's type must be the same as the value type of the associated
      * metric. If the associated metric's descriptor must be auto-created, then
@@ -1391,8 +1644,8 @@ public com.google.monitoring.v3.Point getPoints(int index) {
     }
     /**
      * 
-     * The data points of this time series. When listing time series, the order of
-     * the points is specified by the list method.
+     * The data points of this time series. When listing time series, points are
+     * returned in reverse time order.
      * When creating a time series, this field must contain exactly one point and
      * the point's type must be the same as the value type of the associated
      * metric. If the associated metric's descriptor must be auto-created, then
@@ -1418,8 +1671,8 @@ public Builder setPoints(
     }
     /**
      * 
-     * The data points of this time series. When listing time series, the order of
-     * the points is specified by the list method.
+     * The data points of this time series. When listing time series, points are
+     * returned in reverse time order.
      * When creating a time series, this field must contain exactly one point and
      * the point's type must be the same as the value type of the associated
      * metric. If the associated metric's descriptor must be auto-created, then
@@ -1442,8 +1695,8 @@ public Builder setPoints(
     }
     /**
      * 
-     * The data points of this time series. When listing time series, the order of
-     * the points is specified by the list method.
+     * The data points of this time series. When listing time series, points are
+     * returned in reverse time order.
      * When creating a time series, this field must contain exactly one point and
      * the point's type must be the same as the value type of the associated
      * metric. If the associated metric's descriptor must be auto-created, then
@@ -1468,8 +1721,8 @@ public Builder addPoints(com.google.monitoring.v3.Point value) {
     }
     /**
      * 
-     * The data points of this time series. When listing time series, the order of
-     * the points is specified by the list method.
+     * The data points of this time series. When listing time series, points are
+     * returned in reverse time order.
      * When creating a time series, this field must contain exactly one point and
      * the point's type must be the same as the value type of the associated
      * metric. If the associated metric's descriptor must be auto-created, then
@@ -1495,8 +1748,8 @@ public Builder addPoints(
     }
     /**
      * 
-     * The data points of this time series. When listing time series, the order of
-     * the points is specified by the list method.
+     * The data points of this time series. When listing time series, points are
+     * returned in reverse time order.
      * When creating a time series, this field must contain exactly one point and
      * the point's type must be the same as the value type of the associated
      * metric. If the associated metric's descriptor must be auto-created, then
@@ -1519,8 +1772,8 @@ public Builder addPoints(
     }
     /**
      * 
-     * The data points of this time series. When listing time series, the order of
-     * the points is specified by the list method.
+     * The data points of this time series. When listing time series, points are
+     * returned in reverse time order.
      * When creating a time series, this field must contain exactly one point and
      * the point's type must be the same as the value type of the associated
      * metric. If the associated metric's descriptor must be auto-created, then
@@ -1543,8 +1796,8 @@ public Builder addPoints(
     }
     /**
      * 
-     * The data points of this time series. When listing time series, the order of
-     * the points is specified by the list method.
+     * The data points of this time series. When listing time series, points are
+     * returned in reverse time order.
      * When creating a time series, this field must contain exactly one point and
      * the point's type must be the same as the value type of the associated
      * metric. If the associated metric's descriptor must be auto-created, then
@@ -1568,8 +1821,8 @@ public Builder addAllPoints(
     }
     /**
      * 
-     * The data points of this time series. When listing time series, the order of
-     * the points is specified by the list method.
+     * The data points of this time series. When listing time series, points are
+     * returned in reverse time order.
      * When creating a time series, this field must contain exactly one point and
      * the point's type must be the same as the value type of the associated
      * metric. If the associated metric's descriptor must be auto-created, then
@@ -1582,7 +1835,7 @@ public Builder addAllPoints(
     public Builder clearPoints() {
       if (pointsBuilder_ == null) {
         points_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000010);
+        bitField0_ = (bitField0_ & ~0x00000020);
         onChanged();
       } else {
         pointsBuilder_.clear();
@@ -1591,8 +1844,8 @@ public Builder clearPoints() {
     }
     /**
      * 
-     * The data points of this time series. When listing time series, the order of
-     * the points is specified by the list method.
+     * The data points of this time series. When listing time series, points are
+     * returned in reverse time order.
      * When creating a time series, this field must contain exactly one point and
      * the point's type must be the same as the value type of the associated
      * metric. If the associated metric's descriptor must be auto-created, then
@@ -1614,8 +1867,8 @@ public Builder removePoints(int index) {
     }
     /**
      * 
-     * The data points of this time series. When listing time series, the order of
-     * the points is specified by the list method.
+     * The data points of this time series. When listing time series, points are
+     * returned in reverse time order.
      * When creating a time series, this field must contain exactly one point and
      * the point's type must be the same as the value type of the associated
      * metric. If the associated metric's descriptor must be auto-created, then
@@ -1631,8 +1884,8 @@ public com.google.monitoring.v3.Point.Builder getPointsBuilder(
     }
     /**
      * 
-     * The data points of this time series. When listing time series, the order of
-     * the points is specified by the list method.
+     * The data points of this time series. When listing time series, points are
+     * returned in reverse time order.
      * When creating a time series, this field must contain exactly one point and
      * the point's type must be the same as the value type of the associated
      * metric. If the associated metric's descriptor must be auto-created, then
@@ -1651,8 +1904,8 @@ public com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(
     }
     /**
      * 
-     * The data points of this time series. When listing time series, the order of
-     * the points is specified by the list method.
+     * The data points of this time series. When listing time series, points are
+     * returned in reverse time order.
      * When creating a time series, this field must contain exactly one point and
      * the point's type must be the same as the value type of the associated
      * metric. If the associated metric's descriptor must be auto-created, then
@@ -1672,8 +1925,8 @@ public com.google.monitoring.v3.PointOrBuilder getPointsOrBuilder(
     }
     /**
      * 
-     * The data points of this time series. When listing time series, the order of
-     * the points is specified by the list method.
+     * The data points of this time series. When listing time series, points are
+     * returned in reverse time order.
      * When creating a time series, this field must contain exactly one point and
      * the point's type must be the same as the value type of the associated
      * metric. If the associated metric's descriptor must be auto-created, then
@@ -1689,8 +1942,8 @@ public com.google.monitoring.v3.Point.Builder addPointsBuilder() {
     }
     /**
      * 
-     * The data points of this time series. When listing time series, the order of
-     * the points is specified by the list method.
+     * The data points of this time series. When listing time series, points are
+     * returned in reverse time order.
      * When creating a time series, this field must contain exactly one point and
      * the point's type must be the same as the value type of the associated
      * metric. If the associated metric's descriptor must be auto-created, then
@@ -1707,8 +1960,8 @@ public com.google.monitoring.v3.Point.Builder addPointsBuilder(
     }
     /**
      * 
-     * The data points of this time series. When listing time series, the order of
-     * the points is specified by the list method.
+     * The data points of this time series. When listing time series, points are
+     * returned in reverse time order.
      * When creating a time series, this field must contain exactly one point and
      * the point's type must be the same as the value type of the associated
      * metric. If the associated metric's descriptor must be auto-created, then
@@ -1729,7 +1982,7 @@ public com.google.monitoring.v3.Point.Builder addPointsBuilder(
         pointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
             com.google.monitoring.v3.Point, com.google.monitoring.v3.Point.Builder, com.google.monitoring.v3.PointOrBuilder>(
                 points_,
-                ((bitField0_ & 0x00000010) == 0x00000010),
+                ((bitField0_ & 0x00000020) == 0x00000020),
                 getParentForChildren(),
                 isClean());
         points_ = null;
diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesOrBuilder.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesOrBuilder.java
index 9c41e0af9dc5..b1a138ce12d2 100644
--- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeSeriesOrBuilder.java
@@ -37,8 +37,8 @@ public interface TimeSeriesOrBuilder extends
 
   /**
    * 
-   * The associated resource. A fully-specified monitored resource used to
-   * identify the time series.
+   * The associated monitored resource.  Custom metrics can use only certain
+   * monitored resource types in their time series data.
    * 
* * .google.api.MonitoredResource resource = 2; @@ -46,8 +46,8 @@ public interface TimeSeriesOrBuilder extends boolean hasResource(); /** *
-   * The associated resource. A fully-specified monitored resource used to
-   * identify the time series.
+   * The associated monitored resource.  Custom metrics can use only certain
+   * monitored resource types in their time series data.
    * 
* * .google.api.MonitoredResource resource = 2; @@ -55,14 +55,45 @@ public interface TimeSeriesOrBuilder extends com.google.api.MonitoredResource getResource(); /** *
-   * The associated resource. A fully-specified monitored resource used to
-   * identify the time series.
+   * The associated monitored resource.  Custom metrics can use only certain
+   * monitored resource types in their time series data.
    * 
* * .google.api.MonitoredResource resource = 2; */ com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder(); + /** + *
+   * Output only. The associated monitored resource metadata. When reading a
+   * a timeseries, this field will include metadata labels that are explicitly
+   * named in the reduction. When creating a timeseries, this field is ignored.
+   * 
+ * + * .google.api.MonitoredResourceMetadata metadata = 7; + */ + boolean hasMetadata(); + /** + *
+   * Output only. The associated monitored resource metadata. When reading a
+   * a timeseries, this field will include metadata labels that are explicitly
+   * named in the reduction. When creating a timeseries, this field is ignored.
+   * 
+ * + * .google.api.MonitoredResourceMetadata metadata = 7; + */ + com.google.api.MonitoredResourceMetadata getMetadata(); + /** + *
+   * Output only. The associated monitored resource metadata. When reading a
+   * a timeseries, this field will include metadata labels that are explicitly
+   * named in the reduction. When creating a timeseries, this field is ignored.
+   * 
+ * + * .google.api.MonitoredResourceMetadata metadata = 7; + */ + com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder(); + /** *
    * The metric kind of the time series. When listing time series, this metric
@@ -121,8 +152,8 @@ public interface TimeSeriesOrBuilder extends
 
   /**
    * 
-   * The data points of this time series. When listing time series, the order of
-   * the points is specified by the list method.
+   * The data points of this time series. When listing time series, points are
+   * returned in reverse time order.
    * When creating a time series, this field must contain exactly one point and
    * the point's type must be the same as the value type of the associated
    * metric. If the associated metric's descriptor must be auto-created, then
@@ -136,8 +167,8 @@ public interface TimeSeriesOrBuilder extends
       getPointsList();
   /**
    * 
-   * The data points of this time series. When listing time series, the order of
-   * the points is specified by the list method.
+   * The data points of this time series. When listing time series, points are
+   * returned in reverse time order.
    * When creating a time series, this field must contain exactly one point and
    * the point's type must be the same as the value type of the associated
    * metric. If the associated metric's descriptor must be auto-created, then
@@ -150,8 +181,8 @@ public interface TimeSeriesOrBuilder extends
   com.google.monitoring.v3.Point getPoints(int index);
   /**
    * 
-   * The data points of this time series. When listing time series, the order of
-   * the points is specified by the list method.
+   * The data points of this time series. When listing time series, points are
+   * returned in reverse time order.
    * When creating a time series, this field must contain exactly one point and
    * the point's type must be the same as the value type of the associated
    * metric. If the associated metric's descriptor must be auto-created, then
@@ -164,8 +195,8 @@ public interface TimeSeriesOrBuilder extends
   int getPointsCount();
   /**
    * 
-   * The data points of this time series. When listing time series, the order of
-   * the points is specified by the list method.
+   * The data points of this time series. When listing time series, points are
+   * returned in reverse time order.
    * When creating a time series, this field must contain exactly one point and
    * the point's type must be the same as the value type of the associated
    * metric. If the associated metric's descriptor must be auto-created, then
@@ -179,8 +210,8 @@ public interface TimeSeriesOrBuilder extends
       getPointsOrBuilderList();
   /**
    * 
-   * The data points of this time series. When listing time series, the order of
-   * the points is specified by the list method.
+   * The data points of this time series. When listing time series, points are
+   * returned in reverse time order.
    * When creating a time series, this field must contain exactly one point and
    * the point's type must be the same as the value type of the associated
    * metric. If the associated metric's descriptor must be auto-created, then
diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequest.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequest.java
index eaa06f576dac..b136140971c8 100644
--- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequest.java
+++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequest.java
@@ -153,10 +153,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * Required. If an `"updateMask"` has been specified, this field gives
    * the values for the set of fields mentioned in the `"updateMask"`. If an
    * `"updateMask"` has not been given, this uptime check configuration replaces
-   * the current configuration. If a field is mentioned in `"updateMask`" but
+   * the current configuration. If a field is mentioned in `"updateMask"` but
    * the corresonding field is omitted in this partial uptime check
    * configuration, it has the effect of deleting/clearing the field from the
    * configuration on the server.
+   * The following fields can be updated: `display_name`,
+   * `http_check`, `tcp_check`, `timeout`, `content_matchers`, and
+   * `selected_regions`.
    * 
* * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3; @@ -169,10 +172,13 @@ public boolean hasUptimeCheckConfig() { * Required. If an `"updateMask"` has been specified, this field gives * the values for the set of fields mentioned in the `"updateMask"`. If an * `"updateMask"` has not been given, this uptime check configuration replaces - * the current configuration. If a field is mentioned in `"updateMask`" but + * the current configuration. If a field is mentioned in `"updateMask"` but * the corresonding field is omitted in this partial uptime check * configuration, it has the effect of deleting/clearing the field from the * configuration on the server. + * The following fields can be updated: `display_name`, + * `http_check`, `tcp_check`, `timeout`, `content_matchers`, and + * `selected_regions`. *
* * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3; @@ -185,10 +191,13 @@ public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig() { * Required. If an `"updateMask"` has been specified, this field gives * the values for the set of fields mentioned in the `"updateMask"`. If an * `"updateMask"` has not been given, this uptime check configuration replaces - * the current configuration. If a field is mentioned in `"updateMask`" but + * the current configuration. If a field is mentioned in `"updateMask"` but * the corresonding field is omitted in this partial uptime check * configuration, it has the effect of deleting/clearing the field from the * configuration on the server. + * The following fields can be updated: `display_name`, + * `http_check`, `tcp_check`, `timeout`, `content_matchers`, and + * `selected_regions`. *
* * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3; @@ -735,10 +744,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * Required. If an `"updateMask"` has been specified, this field gives * the values for the set of fields mentioned in the `"updateMask"`. If an * `"updateMask"` has not been given, this uptime check configuration replaces - * the current configuration. If a field is mentioned in `"updateMask`" but + * the current configuration. If a field is mentioned in `"updateMask"` but * the corresonding field is omitted in this partial uptime check * configuration, it has the effect of deleting/clearing the field from the * configuration on the server. + * The following fields can be updated: `display_name`, + * `http_check`, `tcp_check`, `timeout`, `content_matchers`, and + * `selected_regions`. *
* * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3; @@ -751,10 +763,13 @@ public boolean hasUptimeCheckConfig() { * Required. If an `"updateMask"` has been specified, this field gives * the values for the set of fields mentioned in the `"updateMask"`. If an * `"updateMask"` has not been given, this uptime check configuration replaces - * the current configuration. If a field is mentioned in `"updateMask`" but + * the current configuration. If a field is mentioned in `"updateMask"` but * the corresonding field is omitted in this partial uptime check * configuration, it has the effect of deleting/clearing the field from the * configuration on the server. + * The following fields can be updated: `display_name`, + * `http_check`, `tcp_check`, `timeout`, `content_matchers`, and + * `selected_regions`. *
* * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3; @@ -771,10 +786,13 @@ public com.google.monitoring.v3.UptimeCheckConfig getUptimeCheckConfig() { * Required. If an `"updateMask"` has been specified, this field gives * the values for the set of fields mentioned in the `"updateMask"`. If an * `"updateMask"` has not been given, this uptime check configuration replaces - * the current configuration. If a field is mentioned in `"updateMask`" but + * the current configuration. If a field is mentioned in `"updateMask"` but * the corresonding field is omitted in this partial uptime check * configuration, it has the effect of deleting/clearing the field from the * configuration on the server. + * The following fields can be updated: `display_name`, + * `http_check`, `tcp_check`, `timeout`, `content_matchers`, and + * `selected_regions`. *
* * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3; @@ -797,10 +815,13 @@ public Builder setUptimeCheckConfig(com.google.monitoring.v3.UptimeCheckConfig v * Required. If an `"updateMask"` has been specified, this field gives * the values for the set of fields mentioned in the `"updateMask"`. If an * `"updateMask"` has not been given, this uptime check configuration replaces - * the current configuration. If a field is mentioned in `"updateMask`" but + * the current configuration. If a field is mentioned in `"updateMask"` but * the corresonding field is omitted in this partial uptime check * configuration, it has the effect of deleting/clearing the field from the * configuration on the server. + * The following fields can be updated: `display_name`, + * `http_check`, `tcp_check`, `timeout`, `content_matchers`, and + * `selected_regions`. *
* * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3; @@ -821,10 +842,13 @@ public Builder setUptimeCheckConfig( * Required. If an `"updateMask"` has been specified, this field gives * the values for the set of fields mentioned in the `"updateMask"`. If an * `"updateMask"` has not been given, this uptime check configuration replaces - * the current configuration. If a field is mentioned in `"updateMask`" but + * the current configuration. If a field is mentioned in `"updateMask"` but * the corresonding field is omitted in this partial uptime check * configuration, it has the effect of deleting/clearing the field from the * configuration on the server. + * The following fields can be updated: `display_name`, + * `http_check`, `tcp_check`, `timeout`, `content_matchers`, and + * `selected_regions`. *
* * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3; @@ -849,10 +873,13 @@ public Builder mergeUptimeCheckConfig(com.google.monitoring.v3.UptimeCheckConfig * Required. If an `"updateMask"` has been specified, this field gives * the values for the set of fields mentioned in the `"updateMask"`. If an * `"updateMask"` has not been given, this uptime check configuration replaces - * the current configuration. If a field is mentioned in `"updateMask`" but + * the current configuration. If a field is mentioned in `"updateMask"` but * the corresonding field is omitted in this partial uptime check * configuration, it has the effect of deleting/clearing the field from the * configuration on the server. + * The following fields can be updated: `display_name`, + * `http_check`, `tcp_check`, `timeout`, `content_matchers`, and + * `selected_regions`. *
* * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3; @@ -873,10 +900,13 @@ public Builder clearUptimeCheckConfig() { * Required. If an `"updateMask"` has been specified, this field gives * the values for the set of fields mentioned in the `"updateMask"`. If an * `"updateMask"` has not been given, this uptime check configuration replaces - * the current configuration. If a field is mentioned in `"updateMask`" but + * the current configuration. If a field is mentioned in `"updateMask"` but * the corresonding field is omitted in this partial uptime check * configuration, it has the effect of deleting/clearing the field from the * configuration on the server. + * The following fields can be updated: `display_name`, + * `http_check`, `tcp_check`, `timeout`, `content_matchers`, and + * `selected_regions`. *
* * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3; @@ -891,10 +921,13 @@ public com.google.monitoring.v3.UptimeCheckConfig.Builder getUptimeCheckConfigBu * Required. If an `"updateMask"` has been specified, this field gives * the values for the set of fields mentioned in the `"updateMask"`. If an * `"updateMask"` has not been given, this uptime check configuration replaces - * the current configuration. If a field is mentioned in `"updateMask`" but + * the current configuration. If a field is mentioned in `"updateMask"` but * the corresonding field is omitted in this partial uptime check * configuration, it has the effect of deleting/clearing the field from the * configuration on the server. + * The following fields can be updated: `display_name`, + * `http_check`, `tcp_check`, `timeout`, `content_matchers`, and + * `selected_regions`. *
* * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3; @@ -912,10 +945,13 @@ public com.google.monitoring.v3.UptimeCheckConfigOrBuilder getUptimeCheckConfigO * Required. If an `"updateMask"` has been specified, this field gives * the values for the set of fields mentioned in the `"updateMask"`. If an * `"updateMask"` has not been given, this uptime check configuration replaces - * the current configuration. If a field is mentioned in `"updateMask`" but + * the current configuration. If a field is mentioned in `"updateMask"` but * the corresonding field is omitted in this partial uptime check * configuration, it has the effect of deleting/clearing the field from the * configuration on the server. + * The following fields can be updated: `display_name`, + * `http_check`, `tcp_check`, `timeout`, `content_matchers`, and + * `selected_regions`. *
* * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3; diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequestOrBuilder.java index 2e829d0af17d..bee5c8a8af62 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UpdateUptimeCheckConfigRequestOrBuilder.java @@ -46,10 +46,13 @@ public interface UpdateUptimeCheckConfigRequestOrBuilder extends * Required. If an `"updateMask"` has been specified, this field gives * the values for the set of fields mentioned in the `"updateMask"`. If an * `"updateMask"` has not been given, this uptime check configuration replaces - * the current configuration. If a field is mentioned in `"updateMask`" but + * the current configuration. If a field is mentioned in `"updateMask"` but * the corresonding field is omitted in this partial uptime check * configuration, it has the effect of deleting/clearing the field from the * configuration on the server. + * The following fields can be updated: `display_name`, + * `http_check`, `tcp_check`, `timeout`, `content_matchers`, and + * `selected_regions`. *
* * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3; @@ -60,10 +63,13 @@ public interface UpdateUptimeCheckConfigRequestOrBuilder extends * Required. If an `"updateMask"` has been specified, this field gives * the values for the set of fields mentioned in the `"updateMask"`. If an * `"updateMask"` has not been given, this uptime check configuration replaces - * the current configuration. If a field is mentioned in `"updateMask`" but + * the current configuration. If a field is mentioned in `"updateMask"` but * the corresonding field is omitted in this partial uptime check * configuration, it has the effect of deleting/clearing the field from the * configuration on the server. + * The following fields can be updated: `display_name`, + * `http_check`, `tcp_check`, `timeout`, `content_matchers`, and + * `selected_regions`. *
* * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3; @@ -74,10 +80,13 @@ public interface UpdateUptimeCheckConfigRequestOrBuilder extends * Required. If an `"updateMask"` has been specified, this field gives * the values for the set of fields mentioned in the `"updateMask"`. If an * `"updateMask"` has not been given, this uptime check configuration replaces - * the current configuration. If a field is mentioned in `"updateMask`" but + * the current configuration. If a field is mentioned in `"updateMask"` but * the corresonding field is omitted in this partial uptime check * configuration, it has the effect of deleting/clearing the field from the * configuration on the server. + * The following fields can be updated: `display_name`, + * `http_check`, `tcp_check`, `timeout`, `content_matchers`, and + * `selected_regions`. *
* * .google.monitoring.v3.UptimeCheckConfig uptime_check_config = 3; diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java index 8d287c442948..661ec9729c13 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfig.java @@ -25,6 +25,7 @@ private UptimeCheckConfig() { displayName_ = ""; contentMatchers_ = java.util.Collections.emptyList(); selectedRegions_ = java.util.Collections.emptyList(); + isInternal_ = false; internalCheckers_ = java.util.Collections.emptyList(); } @@ -179,12 +180,17 @@ private UptimeCheckConfig( break; } case 114: { - if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { - internalCheckers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000400; + if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + internalCheckers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000800; } internalCheckers_.add( - input.readMessage(com.google.monitoring.v3.UptimeCheckConfig.InternalChecker.parser(), extensionRegistry)); + input.readMessage(com.google.monitoring.v3.InternalChecker.parser(), extensionRegistry)); + break; + } + case 120: { + + isInternal_ = input.readBool(); break; } default: { @@ -208,7 +214,7 @@ private UptimeCheckConfig( if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { selectedRegions_ = java.util.Collections.unmodifiableList(selectedRegions_); } - if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { internalCheckers_ = java.util.Collections.unmodifiableList(internalCheckers_); } this.unknownFields = unknownFields.build(); @@ -1060,6 +1066,7 @@ public interface HttpCheckOrBuilder extends * https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). * Entering two separate headers with the same key in a Create call will * cause the first to be overwritten by the second. + * The maximum number of headers allowed is 100. *
* * map<string, string> headers = 6; @@ -1074,6 +1081,7 @@ public interface HttpCheckOrBuilder extends * https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). * Entering two separate headers with the same key in a Create call will * cause the first to be overwritten by the second. + * The maximum number of headers allowed is 100. *
* * map<string, string> headers = 6; @@ -1095,6 +1103,7 @@ boolean containsHeaders( * https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). * Entering two separate headers with the same key in a Create call will * cause the first to be overwritten by the second. + * The maximum number of headers allowed is 100. *
* * map<string, string> headers = 6; @@ -1110,6 +1119,7 @@ boolean containsHeaders( * https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). * Entering two separate headers with the same key in a Create call will * cause the first to be overwritten by the second. + * The maximum number of headers allowed is 100. *
* * map<string, string> headers = 6; @@ -1127,6 +1137,7 @@ java.lang.String getHeadersOrDefault( * https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). * Entering two separate headers with the same key in a Create call will * cause the first to be overwritten by the second. + * The maximum number of headers allowed is 100. *
* * map<string, string> headers = 6; @@ -2208,6 +2219,7 @@ public int getHeadersCount() { * https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). * Entering two separate headers with the same key in a Create call will * cause the first to be overwritten by the second. + * The maximum number of headers allowed is 100. *
* * map<string, string> headers = 6; @@ -2234,6 +2246,7 @@ public java.util.Map getHeaders() { * https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). * Entering two separate headers with the same key in a Create call will * cause the first to be overwritten by the second. + * The maximum number of headers allowed is 100. *
* * map<string, string> headers = 6; @@ -2251,6 +2264,7 @@ public java.util.Map getHeadersMap() { * https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). * Entering two separate headers with the same key in a Create call will * cause the first to be overwritten by the second. + * The maximum number of headers allowed is 100. *
* * map<string, string> headers = 6; @@ -2273,6 +2287,7 @@ public java.lang.String getHeadersOrDefault( * https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). * Entering two separate headers with the same key in a Create call will * cause the first to be overwritten by the second. + * The maximum number of headers allowed is 100. *
* * map<string, string> headers = 6; @@ -3163,6 +3178,7 @@ public int getHeadersCount() { * https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). * Entering two separate headers with the same key in a Create call will * cause the first to be overwritten by the second. + * The maximum number of headers allowed is 100. *
* * map<string, string> headers = 6; @@ -3189,6 +3205,7 @@ public java.util.Map getHeaders() { * https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). * Entering two separate headers with the same key in a Create call will * cause the first to be overwritten by the second. + * The maximum number of headers allowed is 100. *
* * map<string, string> headers = 6; @@ -3206,6 +3223,7 @@ public java.util.Map getHeadersMap() { * https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). * Entering two separate headers with the same key in a Create call will * cause the first to be overwritten by the second. + * The maximum number of headers allowed is 100. *
* * map<string, string> headers = 6; @@ -3228,6 +3246,7 @@ public java.lang.String getHeadersOrDefault( * https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). * Entering two separate headers with the same key in a Create call will * cause the first to be overwritten by the second. + * The maximum number of headers allowed is 100. *
* * map<string, string> headers = 6; @@ -3258,6 +3277,7 @@ public Builder clearHeaders() { * https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). * Entering two separate headers with the same key in a Create call will * cause the first to be overwritten by the second. + * The maximum number of headers allowed is 100. *
* * map<string, string> headers = 6; @@ -3287,6 +3307,7 @@ public Builder removeHeaders( * https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). * Entering two separate headers with the same key in a Create call will * cause the first to be overwritten by the second. + * The maximum number of headers allowed is 100. *
* * map<string, string> headers = 6; @@ -3309,6 +3330,7 @@ public Builder putHeaders( * https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). * Entering two separate headers with the same key in a Create call will * cause the first to be overwritten by the second. + * The maximum number of headers allowed is 100. * * * map<string, string> headers = 6; @@ -3893,7 +3915,7 @@ public interface ContentMatcherOrBuilder extends /** *
-     * String content to match
+     * String content to match (max 1024 bytes)
      * 
* * string content = 1; @@ -3901,7 +3923,7 @@ public interface ContentMatcherOrBuilder extends java.lang.String getContent(); /** *
-     * String content to match
+     * String content to match (max 1024 bytes)
      * 
* * string content = 1; @@ -3997,7 +4019,7 @@ private ContentMatcher( private volatile java.lang.Object content_; /** *
-     * String content to match
+     * String content to match (max 1024 bytes)
      * 
* * string content = 1; @@ -4016,7 +4038,7 @@ public java.lang.String getContent() { } /** *
-     * String content to match
+     * String content to match (max 1024 bytes)
      * 
* * string content = 1; @@ -4347,7 +4369,7 @@ public Builder mergeFrom( private java.lang.Object content_ = ""; /** *
-       * String content to match
+       * String content to match (max 1024 bytes)
        * 
* * string content = 1; @@ -4366,7 +4388,7 @@ public java.lang.String getContent() { } /** *
-       * String content to match
+       * String content to match (max 1024 bytes)
        * 
* * string content = 1; @@ -4386,7 +4408,7 @@ public java.lang.String getContent() { } /** *
-       * String content to match
+       * String content to match (max 1024 bytes)
        * 
* * string content = 1; @@ -4403,7 +4425,7 @@ public Builder setContent( } /** *
-       * String content to match
+       * String content to match (max 1024 bytes)
        * 
* * string content = 1; @@ -4416,7 +4438,7 @@ public Builder clearContent() { } /** *
-       * String content to match
+       * String content to match (max 1024 bytes)
        * 
* * string content = 1; @@ -4485,1478 +4507,191 @@ public com.google.monitoring.v3.UptimeCheckConfig.ContentMatcher getDefaultInsta } - public interface InternalCheckerOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.monitoring.v3.UptimeCheckConfig.InternalChecker) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The GCP project ID. Not necessarily the same as the project_id for the config.
-     * 
- * - * string project_id = 1; - */ - java.lang.String getProjectId(); + private int bitField0_; + private int resourceCase_ = 0; + private java.lang.Object resource_; + public enum ResourceCase + implements com.google.protobuf.Internal.EnumLite { + MONITORED_RESOURCE(3), + RESOURCE_GROUP(4), + RESOURCE_NOT_SET(0); + private final int value; + private ResourceCase(int value) { + this.value = value; + } /** - *
-     * The GCP project ID. Not necessarily the same as the project_id for the config.
-     * 
- * - * string project_id = 1; + * @deprecated Use {@link #forNumber(int)} instead. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + @java.lang.Deprecated + public static ResourceCase valueOf(int value) { + return forNumber(value); + } - /** - *
-     * The internal network to perform this uptime check on.
-     * 
- * - * string network = 2; - */ - java.lang.String getNetwork(); - /** - *
-     * The internal network to perform this uptime check on.
-     * 
- * - * string network = 2; - */ - com.google.protobuf.ByteString - getNetworkBytes(); + public static ResourceCase forNumber(int value) { + switch (value) { + case 3: return MONITORED_RESOURCE; + case 4: return RESOURCE_GROUP; + case 0: return RESOURCE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; - /** - *
-     * The GCP zone the uptime check should egress from. Only respected for
-     * internal uptime checks, where internal_network is specified.
-     * 
- * - * string gcp_zone = 3; - */ - java.lang.String getGcpZone(); - /** - *
-     * The GCP zone the uptime check should egress from. Only respected for
-     * internal uptime checks, where internal_network is specified.
-     * 
- * - * string gcp_zone = 3; - */ - com.google.protobuf.ByteString - getGcpZoneBytes(); + public ResourceCase + getResourceCase() { + return ResourceCase.forNumber( + resourceCase_); + } + private int checkRequestTypeCase_ = 0; + private java.lang.Object checkRequestType_; + public enum CheckRequestTypeCase + implements com.google.protobuf.Internal.EnumLite { + HTTP_CHECK(5), + TCP_CHECK(6), + CHECKREQUESTTYPE_NOT_SET(0); + private final int value; + private CheckRequestTypeCase(int value) { + this.value = value; + } /** - *
-     * The checker ID.
-     * 
- * - * string checker_id = 4; - */ - java.lang.String getCheckerId(); - /** - *
-     * The checker ID.
-     * 
- * - * string checker_id = 4; + * @deprecated Use {@link #forNumber(int)} instead. */ - com.google.protobuf.ByteString - getCheckerIdBytes(); + @java.lang.Deprecated + public static CheckRequestTypeCase valueOf(int value) { + return forNumber(value); + } - /** - *
-     * The checker's human-readable name.
-     * 
- * - * string display_name = 5; - */ - java.lang.String getDisplayName(); - /** - *
-     * The checker's human-readable name.
-     * 
- * - * string display_name = 5; - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + public static CheckRequestTypeCase forNumber(int value) { + switch (value) { + case 5: return HTTP_CHECK; + case 6: return TCP_CHECK; + case 0: return CHECKREQUESTTYPE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public CheckRequestTypeCase + getCheckRequestTypeCase() { + return CheckRequestTypeCase.forNumber( + checkRequestTypeCase_); } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; /** *
-   * Nimbus InternalCheckers.
+   * A unique resource name for this UptimeCheckConfig. The format is:
+   *   `projects/[PROJECT_ID]/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.
    * 
* - * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.InternalChecker} + * string name = 1; */ - public static final class InternalChecker extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.monitoring.v3.UptimeCheckConfig.InternalChecker) - InternalCheckerOrBuilder { - private static final long serialVersionUID = 0L; - // Use InternalChecker.newBuilder() to construct. - private InternalChecker(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); + 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; } - private InternalChecker() { - projectId_ = ""; - network_ = ""; - gcpZone_ = ""; - checkerId_ = ""; - displayName_ = ""; + } + /** + *
+   * A unique resource name for this UptimeCheckConfig. The format is:
+   *   `projects/[PROJECT_ID]/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.
+   * 
+ * + * string name = 1; + */ + 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; } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + *
+   * A human-friendly name for the uptime check configuration. The display name
+   * should be unique within a Stackdriver Account in order to make it easier
+   * to identify; however, uniqueness is not enforced. Required.
+   * 
+ * + * string display_name = 2; + */ + 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; } - private InternalChecker( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - projectId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - network_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - gcpZone_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - checkerId_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - default: { - if (!parseUnknownFieldProto3( - 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.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_InternalChecker_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_InternalChecker_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UptimeCheckConfig.InternalChecker.class, com.google.monitoring.v3.UptimeCheckConfig.InternalChecker.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
-     * The GCP project ID. Not necessarily the same as the project_id for the config.
-     * 
- * - * string project_id = 1; - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - 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(); - projectId_ = s; - return s; - } - } - /** - *
-     * The GCP project ID. Not necessarily the same as the project_id for the config.
-     * 
- * - * string project_id = 1; - */ - public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NETWORK_FIELD_NUMBER = 2; - private volatile java.lang.Object network_; - /** - *
-     * The internal network to perform this uptime check on.
-     * 
- * - * string network = 2; - */ - public java.lang.String getNetwork() { - java.lang.Object ref = network_; - 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(); - network_ = s; - return s; - } - } - /** - *
-     * The internal network to perform this uptime check on.
-     * 
- * - * string network = 2; - */ - public com.google.protobuf.ByteString - getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GCP_ZONE_FIELD_NUMBER = 3; - private volatile java.lang.Object gcpZone_; - /** - *
-     * The GCP zone the uptime check should egress from. Only respected for
-     * internal uptime checks, where internal_network is specified.
-     * 
- * - * string gcp_zone = 3; - */ - public java.lang.String getGcpZone() { - java.lang.Object ref = gcpZone_; - 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(); - gcpZone_ = s; - return s; - } - } - /** - *
-     * The GCP zone the uptime check should egress from. Only respected for
-     * internal uptime checks, where internal_network is specified.
-     * 
- * - * string gcp_zone = 3; - */ - public com.google.protobuf.ByteString - getGcpZoneBytes() { - java.lang.Object ref = gcpZone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gcpZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHECKER_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object checkerId_; - /** - *
-     * The checker ID.
-     * 
- * - * string checker_id = 4; - */ - public java.lang.String getCheckerId() { - java.lang.Object ref = checkerId_; - 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(); - checkerId_ = s; - return s; - } - } - /** - *
-     * The checker ID.
-     * 
- * - * string checker_id = 4; - */ - public com.google.protobuf.ByteString - getCheckerIdBytes() { - java.lang.Object ref = checkerId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - checkerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object displayName_; - /** - *
-     * The checker's human-readable name.
-     * 
- * - * string display_name = 5; - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-     * The checker's human-readable name.
-     * 
- * - * string display_name = 5; - */ - 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; - } - } - - 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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getNetworkBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, network_); - } - if (!getGcpZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, gcpZone_); - } - if (!getCheckerIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, checkerId_); - } - if (!getDisplayNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!getNetworkBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, network_); - } - if (!getGcpZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, gcpZone_); - } - if (!getCheckerIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, checkerId_); - } - if (!getDisplayNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); - } - 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.UptimeCheckConfig.InternalChecker)) { - return super.equals(obj); - } - com.google.monitoring.v3.UptimeCheckConfig.InternalChecker other = (com.google.monitoring.v3.UptimeCheckConfig.InternalChecker) obj; - - boolean result = true; - result = result && getProjectId() - .equals(other.getProjectId()); - result = result && getNetwork() - .equals(other.getNetwork()); - result = result && getGcpZone() - .equals(other.getGcpZone()); - result = result && getCheckerId() - .equals(other.getCheckerId()); - result = result && getDisplayName() - .equals(other.getDisplayName()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + NETWORK_FIELD_NUMBER; - hash = (53 * hash) + getNetwork().hashCode(); - hash = (37 * hash) + GCP_ZONE_FIELD_NUMBER; - hash = (53 * hash) + getGcpZone().hashCode(); - hash = (37 * hash) + CHECKER_ID_FIELD_NUMBER; - hash = (53 * hash) + getCheckerId().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.monitoring.v3.UptimeCheckConfig.InternalChecker parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.monitoring.v3.UptimeCheckConfig.InternalChecker 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.UptimeCheckConfig.InternalChecker parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.monitoring.v3.UptimeCheckConfig.InternalChecker 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.UptimeCheckConfig.InternalChecker parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.monitoring.v3.UptimeCheckConfig.InternalChecker parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.monitoring.v3.UptimeCheckConfig.InternalChecker parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.monitoring.v3.UptimeCheckConfig.InternalChecker 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.UptimeCheckConfig.InternalChecker parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.monitoring.v3.UptimeCheckConfig.InternalChecker 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.UptimeCheckConfig.InternalChecker parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.monitoring.v3.UptimeCheckConfig.InternalChecker 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.UptimeCheckConfig.InternalChecker 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; - } - /** - *
-     * Nimbus InternalCheckers.
-     * 
- * - * Protobuf type {@code google.monitoring.v3.UptimeCheckConfig.InternalChecker} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.monitoring.v3.UptimeCheckConfig.InternalChecker) - com.google.monitoring.v3.UptimeCheckConfig.InternalCheckerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_InternalChecker_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_InternalChecker_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.UptimeCheckConfig.InternalChecker.class, com.google.monitoring.v3.UptimeCheckConfig.InternalChecker.Builder.class); - } - - // Construct using com.google.monitoring.v3.UptimeCheckConfig.InternalChecker.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - projectId_ = ""; - - network_ = ""; - - gcpZone_ = ""; - - checkerId_ = ""; - - displayName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.monitoring.v3.UptimeProto.internal_static_google_monitoring_v3_UptimeCheckConfig_InternalChecker_descriptor; - } - - @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.InternalChecker getDefaultInstanceForType() { - return com.google.monitoring.v3.UptimeCheckConfig.InternalChecker.getDefaultInstance(); - } - - @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.InternalChecker build() { - com.google.monitoring.v3.UptimeCheckConfig.InternalChecker result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.InternalChecker buildPartial() { - com.google.monitoring.v3.UptimeCheckConfig.InternalChecker result = new com.google.monitoring.v3.UptimeCheckConfig.InternalChecker(this); - result.projectId_ = projectId_; - result.network_ = network_; - result.gcpZone_ = gcpZone_; - result.checkerId_ = checkerId_; - result.displayName_ = displayName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.monitoring.v3.UptimeCheckConfig.InternalChecker) { - return mergeFrom((com.google.monitoring.v3.UptimeCheckConfig.InternalChecker)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig.InternalChecker other) { - if (other == com.google.monitoring.v3.UptimeCheckConfig.InternalChecker.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - onChanged(); - } - if (!other.getGcpZone().isEmpty()) { - gcpZone_ = other.gcpZone_; - onChanged(); - } - if (!other.getCheckerId().isEmpty()) { - checkerId_ = other.checkerId_; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.monitoring.v3.UptimeCheckConfig.InternalChecker parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.monitoring.v3.UptimeCheckConfig.InternalChecker) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - *
-       * The GCP project ID. Not necessarily the same as the project_id for the config.
-       * 
- * - * string project_id = 1; - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The GCP project ID. Not necessarily the same as the project_id for the config.
-       * 
- * - * string project_id = 1; - */ - public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The GCP project ID. Not necessarily the same as the project_id for the config.
-       * 
- * - * string project_id = 1; - */ - public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
-       * The GCP project ID. Not necessarily the same as the project_id for the config.
-       * 
- * - * string project_id = 1; - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
-       * The GCP project ID. Not necessarily the same as the project_id for the config.
-       * 
- * - * string project_id = 1; - */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object network_ = ""; - /** - *
-       * The internal network to perform this uptime check on.
-       * 
- * - * string network = 2; - */ - public java.lang.String getNetwork() { - java.lang.Object ref = network_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - network_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The internal network to perform this uptime check on.
-       * 
- * - * string network = 2; - */ - public com.google.protobuf.ByteString - getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The internal network to perform this uptime check on.
-       * 
- * - * string network = 2; - */ - public Builder setNetwork( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - network_ = value; - onChanged(); - return this; - } - /** - *
-       * The internal network to perform this uptime check on.
-       * 
- * - * string network = 2; - */ - public Builder clearNetwork() { - - network_ = getDefaultInstance().getNetwork(); - onChanged(); - return this; - } - /** - *
-       * The internal network to perform this uptime check on.
-       * 
- * - * string network = 2; - */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - network_ = value; - onChanged(); - return this; - } - - private java.lang.Object gcpZone_ = ""; - /** - *
-       * The GCP zone the uptime check should egress from. Only respected for
-       * internal uptime checks, where internal_network is specified.
-       * 
- * - * string gcp_zone = 3; - */ - public java.lang.String getGcpZone() { - java.lang.Object ref = gcpZone_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gcpZone_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The GCP zone the uptime check should egress from. Only respected for
-       * internal uptime checks, where internal_network is specified.
-       * 
- * - * string gcp_zone = 3; - */ - public com.google.protobuf.ByteString - getGcpZoneBytes() { - java.lang.Object ref = gcpZone_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gcpZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The GCP zone the uptime check should egress from. Only respected for
-       * internal uptime checks, where internal_network is specified.
-       * 
- * - * string gcp_zone = 3; - */ - public Builder setGcpZone( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gcpZone_ = value; - onChanged(); - return this; - } - /** - *
-       * The GCP zone the uptime check should egress from. Only respected for
-       * internal uptime checks, where internal_network is specified.
-       * 
- * - * string gcp_zone = 3; - */ - public Builder clearGcpZone() { - - gcpZone_ = getDefaultInstance().getGcpZone(); - onChanged(); - return this; - } - /** - *
-       * The GCP zone the uptime check should egress from. Only respected for
-       * internal uptime checks, where internal_network is specified.
-       * 
- * - * string gcp_zone = 3; - */ - public Builder setGcpZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gcpZone_ = value; - onChanged(); - return this; - } - - private java.lang.Object checkerId_ = ""; - /** - *
-       * The checker ID.
-       * 
- * - * string checker_id = 4; - */ - public java.lang.String getCheckerId() { - java.lang.Object ref = checkerId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - checkerId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The checker ID.
-       * 
- * - * string checker_id = 4; - */ - public com.google.protobuf.ByteString - getCheckerIdBytes() { - java.lang.Object ref = checkerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - checkerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The checker ID.
-       * 
- * - * string checker_id = 4; - */ - public Builder setCheckerId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - checkerId_ = value; - onChanged(); - return this; - } - /** - *
-       * The checker ID.
-       * 
- * - * string checker_id = 4; - */ - public Builder clearCheckerId() { - - checkerId_ = getDefaultInstance().getCheckerId(); - onChanged(); - return this; - } - /** - *
-       * The checker ID.
-       * 
- * - * string checker_id = 4; - */ - public Builder setCheckerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - checkerId_ = value; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - *
-       * The checker's human-readable name.
-       * 
- * - * string display_name = 5; - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The checker's human-readable name.
-       * 
- * - * string display_name = 5; - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The checker's human-readable name.
-       * 
- * - * string display_name = 5; - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - displayName_ = value; - onChanged(); - return this; - } - /** - *
-       * The checker's human-readable name.
-       * 
- * - * string display_name = 5; - */ - public Builder clearDisplayName() { - - displayName_ = getDefaultInstance().getDisplayName(); - onChanged(); - return this; - } - /** - *
-       * The checker's human-readable name.
-       * 
- * - * string display_name = 5; - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - displayName_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(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.UptimeCheckConfig.InternalChecker) - } - - // @@protoc_insertion_point(class_scope:google.monitoring.v3.UptimeCheckConfig.InternalChecker) - private static final com.google.monitoring.v3.UptimeCheckConfig.InternalChecker DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.monitoring.v3.UptimeCheckConfig.InternalChecker(); - } - - public static com.google.monitoring.v3.UptimeCheckConfig.InternalChecker getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InternalChecker parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InternalChecker(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.monitoring.v3.UptimeCheckConfig.InternalChecker getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - private int resourceCase_ = 0; - private java.lang.Object resource_; - public enum ResourceCase - implements com.google.protobuf.Internal.EnumLite { - MONITORED_RESOURCE(3), - RESOURCE_GROUP(4), - RESOURCE_NOT_SET(0); - private final int value; - private ResourceCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ResourceCase valueOf(int value) { - return forNumber(value); - } - - public static ResourceCase forNumber(int value) { - switch (value) { - case 3: return MONITORED_RESOURCE; - case 4: return RESOURCE_GROUP; - case 0: return RESOURCE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ResourceCase - getResourceCase() { - return ResourceCase.forNumber( - resourceCase_); - } - - private int checkRequestTypeCase_ = 0; - private java.lang.Object checkRequestType_; - public enum CheckRequestTypeCase - implements com.google.protobuf.Internal.EnumLite { - HTTP_CHECK(5), - TCP_CHECK(6), - CHECKREQUESTTYPE_NOT_SET(0); - private final int value; - private CheckRequestTypeCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static CheckRequestTypeCase valueOf(int value) { - return forNumber(value); - } - - public static CheckRequestTypeCase forNumber(int value) { - switch (value) { - case 5: return HTTP_CHECK; - case 6: return TCP_CHECK; - case 0: return CHECKREQUESTTYPE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public CheckRequestTypeCase - getCheckRequestTypeCase() { - return CheckRequestTypeCase.forNumber( - checkRequestTypeCase_); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * A unique resource name for this UptimeCheckConfig. The format is:
-   *   `projects/[PROJECT_ID]/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.
-   * 
- * - * string name = 1; - */ - 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; - } - } - /** - *
-   * A unique resource name for this UptimeCheckConfig. The format is:
-   *   `projects/[PROJECT_ID]/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.
-   * 
- * - * string name = 1; - */ - 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 = 2; - private volatile java.lang.Object displayName_; - /** - *
-   * A human-friendly name for the uptime check configuration. The display name
-   * should be unique within a Stackdriver Account in order to make it easier
-   * to identify; however, uniqueness is not enforced. Required.
-   * 
- * - * string display_name = 2; - */ - 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 human-friendly name for the uptime check configuration. The display name
-   * should be unique within a Stackdriver Account in order to make it easier
-   * to identify; however, uniqueness is not enforced. Required.
-   * 
- * - * string display_name = 2; - */ - 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; - } - } + } + /** + *
+   * A human-friendly name for the uptime check configuration. The display name
+   * should be unique within a Stackdriver Account in order to make it easier
+   * to identify; however, uniqueness is not enforced. Required.
+   * 
+ * + * string display_name = 2; + */ + 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 MONITORED_RESOURCE_FIELD_NUMBER = 3; /** *
-   * The monitored resource associated with the configuration.
+   * The [monitored
+   * resource](https://cloud.google.com/monitoring/api/resources) associated
+   * with the configuration.
+   * The following monitored resource types are supported for uptime checks:
+   *   uptime_url
+   *   gce_instance
+   *   gae_app
+   *   aws_ec2_instance
+   *   aws_elb_load_balancer
    * 
* * .google.api.MonitoredResource monitored_resource = 3; @@ -5966,7 +4701,15 @@ public boolean hasMonitoredResource() { } /** *
-   * The monitored resource associated with the configuration.
+   * The [monitored
+   * resource](https://cloud.google.com/monitoring/api/resources) associated
+   * with the configuration.
+   * The following monitored resource types are supported for uptime checks:
+   *   uptime_url
+   *   gce_instance
+   *   gae_app
+   *   aws_ec2_instance
+   *   aws_elb_load_balancer
    * 
* * .google.api.MonitoredResource monitored_resource = 3; @@ -5979,7 +4722,15 @@ public com.google.api.MonitoredResource getMonitoredResource() { } /** *
-   * The monitored resource associated with the configuration.
+   * The [monitored
+   * resource](https://cloud.google.com/monitoring/api/resources) associated
+   * with the configuration.
+   * The following monitored resource types are supported for uptime checks:
+   *   uptime_url
+   *   gce_instance
+   *   gae_app
+   *   aws_ec2_instance
+   *   aws_elb_load_balancer
    * 
* * .google.api.MonitoredResource monitored_resource = 3; @@ -6109,8 +4860,10 @@ public com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder getTcpCheckO private com.google.protobuf.Duration period_; /** *
-   * How often the uptime check is performed.
-   * Currently, only 1, 5, 10, and 15 minutes are supported. Required.
+   * How often, in seconds, the uptime check is performed.
+   * Currently, the only supported values are `60s` (1 minute), `300s`
+   * (5 minutes), `600s` (10 minutes), and `900s` (15 minutes). Optional,
+   * defaults to `300s`.
    * 
* * .google.protobuf.Duration period = 7; @@ -6120,8 +4873,10 @@ public boolean hasPeriod() { } /** *
-   * How often the uptime check is performed.
-   * Currently, only 1, 5, 10, and 15 minutes are supported. Required.
+   * How often, in seconds, the uptime check is performed.
+   * Currently, the only supported values are `60s` (1 minute), `300s`
+   * (5 minutes), `600s` (10 minutes), and `900s` (15 minutes). Optional,
+   * defaults to `300s`.
    * 
* * .google.protobuf.Duration period = 7; @@ -6131,8 +4886,10 @@ public com.google.protobuf.Duration getPeriod() { } /** *
-   * How often the uptime check is performed.
-   * Currently, only 1, 5, 10, and 15 minutes are supported. Required.
+   * How often, in seconds, the uptime check is performed.
+   * Currently, the only supported values are `60s` (1 minute), `300s`
+   * (5 minutes), `600s` (10 minutes), and `900s` (15 minutes). Optional,
+   * defaults to `300s`.
    * 
* * .google.protobuf.Duration period = 7; @@ -6338,57 +5095,80 @@ public int getSelectedRegionsValue(int index) { } private int selectedRegionsMemoizedSerializedSize; + public static final int IS_INTERNAL_FIELD_NUMBER = 15; + private boolean isInternal_; + /** + *
+   * Denotes whether this is a check that egresses from InternalCheckers.
+   * 
+ * + * bool is_internal = 15; + */ + public boolean getIsInternal() { + return isInternal_; + } + public static final int INTERNAL_CHECKERS_FIELD_NUMBER = 14; - private java.util.List internalCheckers_; + private java.util.List internalCheckers_; /** *
-   * The internal checkers that this check will egress from.
+   * The internal checkers that this check will egress from. If `is_internal` is
+   * true and this list is empty, the check will egress from all
+   * InternalCheckers configured for the project that owns this CheckConfig.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ - public java.util.List getInternalCheckersList() { + public java.util.List getInternalCheckersList() { return internalCheckers_; } /** *
-   * The internal checkers that this check will egress from.
+   * The internal checkers that this check will egress from. If `is_internal` is
+   * true and this list is empty, the check will egress from all
+   * InternalCheckers configured for the project that owns this CheckConfig.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ - public java.util.List + public java.util.List getInternalCheckersOrBuilderList() { return internalCheckers_; } /** *
-   * The internal checkers that this check will egress from.
+   * The internal checkers that this check will egress from. If `is_internal` is
+   * true and this list is empty, the check will egress from all
+   * InternalCheckers configured for the project that owns this CheckConfig.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ public int getInternalCheckersCount() { return internalCheckers_.size(); } /** *
-   * The internal checkers that this check will egress from.
+   * The internal checkers that this check will egress from. If `is_internal` is
+   * true and this list is empty, the check will egress from all
+   * InternalCheckers configured for the project that owns this CheckConfig.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ - public com.google.monitoring.v3.UptimeCheckConfig.InternalChecker getInternalCheckers(int index) { + public com.google.monitoring.v3.InternalChecker getInternalCheckers(int index) { return internalCheckers_.get(index); } /** *
-   * The internal checkers that this check will egress from.
+   * The internal checkers that this check will egress from. If `is_internal` is
+   * true and this list is empty, the check will egress from all
+   * InternalCheckers configured for the project that owns this CheckConfig.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ - public com.google.monitoring.v3.UptimeCheckConfig.InternalCheckerOrBuilder getInternalCheckersOrBuilder( + public com.google.monitoring.v3.InternalCheckerOrBuilder getInternalCheckersOrBuilder( int index) { return internalCheckers_.get(index); } @@ -6445,6 +5225,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < internalCheckers_.size(); i++) { output.writeMessage(14, internalCheckers_.get(i)); } + if (isInternal_ != false) { + output.writeBool(15, isInternal_); + } unknownFields.writeTo(output); } @@ -6504,6 +5287,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, internalCheckers_.get(i)); } + if (isInternal_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(15, isInternal_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -6537,6 +5324,8 @@ public boolean equals(final java.lang.Object obj) { result = result && getContentMatchersList() .equals(other.getContentMatchersList()); result = result && selectedRegions_.equals(other.selectedRegions_); + result = result && (getIsInternal() + == other.getIsInternal()); result = result && getInternalCheckersList() .equals(other.getInternalCheckersList()); result = result && getResourceCase().equals( @@ -6600,6 +5389,9 @@ public int hashCode() { hash = (37 * hash) + SELECTED_REGIONS_FIELD_NUMBER; hash = (53 * hash) + selectedRegions_.hashCode(); } + hash = (37 * hash) + IS_INTERNAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsInternal()); if (getInternalCheckersCount() > 0) { hash = (37 * hash) + INTERNAL_CHECKERS_FIELD_NUMBER; hash = (53 * hash) + getInternalCheckersList().hashCode(); @@ -6792,9 +5584,11 @@ public Builder clear() { } selectedRegions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); + isInternal_ = false; + if (internalCheckersBuilder_ == null) { internalCheckers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); } else { internalCheckersBuilder_.clear(); } @@ -6884,10 +5678,11 @@ public com.google.monitoring.v3.UptimeCheckConfig buildPartial() { bitField0_ = (bitField0_ & ~0x00000200); } result.selectedRegions_ = selectedRegions_; + result.isInternal_ = isInternal_; if (internalCheckersBuilder_ == null) { - if (((bitField0_ & 0x00000400) == 0x00000400)) { + if (((bitField0_ & 0x00000800) == 0x00000800)) { internalCheckers_ = java.util.Collections.unmodifiableList(internalCheckers_); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); } result.internalCheckers_ = internalCheckers_; } else { @@ -6994,11 +5789,14 @@ public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig other) { } onChanged(); } + if (other.getIsInternal() != false) { + setIsInternal(other.getIsInternal()); + } if (internalCheckersBuilder_ == null) { if (!other.internalCheckers_.isEmpty()) { if (internalCheckers_.isEmpty()) { internalCheckers_ = other.internalCheckers_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); } else { ensureInternalCheckersIsMutable(); internalCheckers_.addAll(other.internalCheckers_); @@ -7011,7 +5809,7 @@ public Builder mergeFrom(com.google.monitoring.v3.UptimeCheckConfig other) { internalCheckersBuilder_.dispose(); internalCheckersBuilder_ = null; internalCheckers_ = other.internalCheckers_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); internalCheckersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInternalCheckersFieldBuilder() : null; @@ -7318,7 +6116,15 @@ public Builder setDisplayNameBytes( com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> monitoredResourceBuilder_; /** *
-     * The monitored resource associated with the configuration.
+     * The [monitored
+     * resource](https://cloud.google.com/monitoring/api/resources) associated
+     * with the configuration.
+     * The following monitored resource types are supported for uptime checks:
+     *   uptime_url
+     *   gce_instance
+     *   gae_app
+     *   aws_ec2_instance
+     *   aws_elb_load_balancer
      * 
* * .google.api.MonitoredResource monitored_resource = 3; @@ -7328,7 +6134,15 @@ public boolean hasMonitoredResource() { } /** *
-     * The monitored resource associated with the configuration.
+     * The [monitored
+     * resource](https://cloud.google.com/monitoring/api/resources) associated
+     * with the configuration.
+     * The following monitored resource types are supported for uptime checks:
+     *   uptime_url
+     *   gce_instance
+     *   gae_app
+     *   aws_ec2_instance
+     *   aws_elb_load_balancer
      * 
* * .google.api.MonitoredResource monitored_resource = 3; @@ -7348,7 +6162,15 @@ public com.google.api.MonitoredResource getMonitoredResource() { } /** *
-     * The monitored resource associated with the configuration.
+     * The [monitored
+     * resource](https://cloud.google.com/monitoring/api/resources) associated
+     * with the configuration.
+     * The following monitored resource types are supported for uptime checks:
+     *   uptime_url
+     *   gce_instance
+     *   gae_app
+     *   aws_ec2_instance
+     *   aws_elb_load_balancer
      * 
* * .google.api.MonitoredResource monitored_resource = 3; @@ -7368,7 +6190,15 @@ public Builder setMonitoredResource(com.google.api.MonitoredResource value) { } /** *
-     * The monitored resource associated with the configuration.
+     * The [monitored
+     * resource](https://cloud.google.com/monitoring/api/resources) associated
+     * with the configuration.
+     * The following monitored resource types are supported for uptime checks:
+     *   uptime_url
+     *   gce_instance
+     *   gae_app
+     *   aws_ec2_instance
+     *   aws_elb_load_balancer
      * 
* * .google.api.MonitoredResource monitored_resource = 3; @@ -7386,7 +6216,15 @@ public Builder setMonitoredResource( } /** *
-     * The monitored resource associated with the configuration.
+     * The [monitored
+     * resource](https://cloud.google.com/monitoring/api/resources) associated
+     * with the configuration.
+     * The following monitored resource types are supported for uptime checks:
+     *   uptime_url
+     *   gce_instance
+     *   gae_app
+     *   aws_ec2_instance
+     *   aws_elb_load_balancer
      * 
* * .google.api.MonitoredResource monitored_resource = 3; @@ -7412,7 +6250,15 @@ public Builder mergeMonitoredResource(com.google.api.MonitoredResource value) { } /** *
-     * The monitored resource associated with the configuration.
+     * The [monitored
+     * resource](https://cloud.google.com/monitoring/api/resources) associated
+     * with the configuration.
+     * The following monitored resource types are supported for uptime checks:
+     *   uptime_url
+     *   gce_instance
+     *   gae_app
+     *   aws_ec2_instance
+     *   aws_elb_load_balancer
      * 
* * .google.api.MonitoredResource monitored_resource = 3; @@ -7435,7 +6281,15 @@ public Builder clearMonitoredResource() { } /** *
-     * The monitored resource associated with the configuration.
+     * The [monitored
+     * resource](https://cloud.google.com/monitoring/api/resources) associated
+     * with the configuration.
+     * The following monitored resource types are supported for uptime checks:
+     *   uptime_url
+     *   gce_instance
+     *   gae_app
+     *   aws_ec2_instance
+     *   aws_elb_load_balancer
      * 
* * .google.api.MonitoredResource monitored_resource = 3; @@ -7445,7 +6299,15 @@ public com.google.api.MonitoredResource.Builder getMonitoredResourceBuilder() { } /** *
-     * The monitored resource associated with the configuration.
+     * The [monitored
+     * resource](https://cloud.google.com/monitoring/api/resources) associated
+     * with the configuration.
+     * The following monitored resource types are supported for uptime checks:
+     *   uptime_url
+     *   gce_instance
+     *   gae_app
+     *   aws_ec2_instance
+     *   aws_elb_load_balancer
      * 
* * .google.api.MonitoredResource monitored_resource = 3; @@ -7462,7 +6324,15 @@ public com.google.api.MonitoredResourceOrBuilder getMonitoredResourceOrBuilder() } /** *
-     * The monitored resource associated with the configuration.
+     * The [monitored
+     * resource](https://cloud.google.com/monitoring/api/resources) associated
+     * with the configuration.
+     * The following monitored resource types are supported for uptime checks:
+     *   uptime_url
+     *   gce_instance
+     *   gae_app
+     *   aws_ec2_instance
+     *   aws_elb_load_balancer
      * 
* * .google.api.MonitoredResource monitored_resource = 3; @@ -8007,8 +6877,10 @@ public com.google.monitoring.v3.UptimeCheckConfig.TcpCheckOrBuilder getTcpCheckO com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> periodBuilder_; /** *
-     * How often the uptime check is performed.
-     * Currently, only 1, 5, 10, and 15 minutes are supported. Required.
+     * How often, in seconds, the uptime check is performed.
+     * Currently, the only supported values are `60s` (1 minute), `300s`
+     * (5 minutes), `600s` (10 minutes), and `900s` (15 minutes). Optional,
+     * defaults to `300s`.
      * 
* * .google.protobuf.Duration period = 7; @@ -8018,8 +6890,10 @@ public boolean hasPeriod() { } /** *
-     * How often the uptime check is performed.
-     * Currently, only 1, 5, 10, and 15 minutes are supported. Required.
+     * How often, in seconds, the uptime check is performed.
+     * Currently, the only supported values are `60s` (1 minute), `300s`
+     * (5 minutes), `600s` (10 minutes), and `900s` (15 minutes). Optional,
+     * defaults to `300s`.
      * 
* * .google.protobuf.Duration period = 7; @@ -8033,8 +6907,10 @@ public com.google.protobuf.Duration getPeriod() { } /** *
-     * How often the uptime check is performed.
-     * Currently, only 1, 5, 10, and 15 minutes are supported. Required.
+     * How often, in seconds, the uptime check is performed.
+     * Currently, the only supported values are `60s` (1 minute), `300s`
+     * (5 minutes), `600s` (10 minutes), and `900s` (15 minutes). Optional,
+     * defaults to `300s`.
      * 
* * .google.protobuf.Duration period = 7; @@ -8054,8 +6930,10 @@ public Builder setPeriod(com.google.protobuf.Duration value) { } /** *
-     * How often the uptime check is performed.
-     * Currently, only 1, 5, 10, and 15 minutes are supported. Required.
+     * How often, in seconds, the uptime check is performed.
+     * Currently, the only supported values are `60s` (1 minute), `300s`
+     * (5 minutes), `600s` (10 minutes), and `900s` (15 minutes). Optional,
+     * defaults to `300s`.
      * 
* * .google.protobuf.Duration period = 7; @@ -8073,8 +6951,10 @@ public Builder setPeriod( } /** *
-     * How often the uptime check is performed.
-     * Currently, only 1, 5, 10, and 15 minutes are supported. Required.
+     * How often, in seconds, the uptime check is performed.
+     * Currently, the only supported values are `60s` (1 minute), `300s`
+     * (5 minutes), `600s` (10 minutes), and `900s` (15 minutes). Optional,
+     * defaults to `300s`.
      * 
* * .google.protobuf.Duration period = 7; @@ -8096,8 +6976,10 @@ public Builder mergePeriod(com.google.protobuf.Duration value) { } /** *
-     * How often the uptime check is performed.
-     * Currently, only 1, 5, 10, and 15 minutes are supported. Required.
+     * How often, in seconds, the uptime check is performed.
+     * Currently, the only supported values are `60s` (1 minute), `300s`
+     * (5 minutes), `600s` (10 minutes), and `900s` (15 minutes). Optional,
+     * defaults to `300s`.
      * 
* * .google.protobuf.Duration period = 7; @@ -8115,8 +6997,10 @@ public Builder clearPeriod() { } /** *
-     * How often the uptime check is performed.
-     * Currently, only 1, 5, 10, and 15 minutes are supported. Required.
+     * How often, in seconds, the uptime check is performed.
+     * Currently, the only supported values are `60s` (1 minute), `300s`
+     * (5 minutes), `600s` (10 minutes), and `900s` (15 minutes). Optional,
+     * defaults to `300s`.
      * 
* * .google.protobuf.Duration period = 7; @@ -8128,8 +7012,10 @@ public com.google.protobuf.Duration.Builder getPeriodBuilder() { } /** *
-     * How often the uptime check is performed.
-     * Currently, only 1, 5, 10, and 15 minutes are supported. Required.
+     * How often, in seconds, the uptime check is performed.
+     * Currently, the only supported values are `60s` (1 minute), `300s`
+     * (5 minutes), `600s` (10 minutes), and `900s` (15 minutes). Optional,
+     * defaults to `300s`.
      * 
* * .google.protobuf.Duration period = 7; @@ -8144,8 +7030,10 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() { } /** *
-     * How often the uptime check is performed.
-     * Currently, only 1, 5, 10, and 15 minutes are supported. Required.
+     * How often, in seconds, the uptime check is performed.
+     * Currently, the only supported values are `60s` (1 minute), `300s`
+     * (5 minutes), `600s` (10 minutes), and `900s` (15 minutes). Optional,
+     * defaults to `300s`.
      * 
* * .google.protobuf.Duration period = 7; @@ -8924,26 +7812,66 @@ public Builder addAllSelectedRegionsValue( return this; } - private java.util.List internalCheckers_ = + private boolean isInternal_ ; + /** + *
+     * Denotes whether this is a check that egresses from InternalCheckers.
+     * 
+ * + * bool is_internal = 15; + */ + public boolean getIsInternal() { + return isInternal_; + } + /** + *
+     * Denotes whether this is a check that egresses from InternalCheckers.
+     * 
+ * + * bool is_internal = 15; + */ + public Builder setIsInternal(boolean value) { + + isInternal_ = value; + onChanged(); + return this; + } + /** + *
+     * Denotes whether this is a check that egresses from InternalCheckers.
+     * 
+ * + * bool is_internal = 15; + */ + public Builder clearIsInternal() { + + isInternal_ = false; + onChanged(); + return this; + } + + private java.util.List internalCheckers_ = java.util.Collections.emptyList(); private void ensureInternalCheckersIsMutable() { - if (!((bitField0_ & 0x00000400) == 0x00000400)) { - internalCheckers_ = new java.util.ArrayList(internalCheckers_); - bitField0_ |= 0x00000400; + if (!((bitField0_ & 0x00000800) == 0x00000800)) { + internalCheckers_ = new java.util.ArrayList(internalCheckers_); + bitField0_ |= 0x00000800; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.InternalChecker, com.google.monitoring.v3.UptimeCheckConfig.InternalChecker.Builder, com.google.monitoring.v3.UptimeCheckConfig.InternalCheckerOrBuilder> internalCheckersBuilder_; + com.google.monitoring.v3.InternalChecker, com.google.monitoring.v3.InternalChecker.Builder, com.google.monitoring.v3.InternalCheckerOrBuilder> internalCheckersBuilder_; /** *
-     * The internal checkers that this check will egress from.
+     * The internal checkers that this check will egress from. If `is_internal` is
+     * true and this list is empty, the check will egress from all
+     * InternalCheckers configured for the project that owns this CheckConfig.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ - public java.util.List getInternalCheckersList() { + public java.util.List getInternalCheckersList() { if (internalCheckersBuilder_ == null) { return java.util.Collections.unmodifiableList(internalCheckers_); } else { @@ -8952,10 +7880,12 @@ public java.util.List - * The internal checkers that this check will egress from. + * The internal checkers that this check will egress from. If `is_internal` is + * true and this list is empty, the check will egress from all + * InternalCheckers configured for the project that owns this CheckConfig. * * - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ public int getInternalCheckersCount() { if (internalCheckersBuilder_ == null) { @@ -8966,12 +7896,14 @@ public int getInternalCheckersCount() { } /** *
-     * The internal checkers that this check will egress from.
+     * The internal checkers that this check will egress from. If `is_internal` is
+     * true and this list is empty, the check will egress from all
+     * InternalCheckers configured for the project that owns this CheckConfig.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ - public com.google.monitoring.v3.UptimeCheckConfig.InternalChecker getInternalCheckers(int index) { + public com.google.monitoring.v3.InternalChecker getInternalCheckers(int index) { if (internalCheckersBuilder_ == null) { return internalCheckers_.get(index); } else { @@ -8980,13 +7912,15 @@ public com.google.monitoring.v3.UptimeCheckConfig.InternalChecker getInternalChe } /** *
-     * The internal checkers that this check will egress from.
+     * The internal checkers that this check will egress from. If `is_internal` is
+     * true and this list is empty, the check will egress from all
+     * InternalCheckers configured for the project that owns this CheckConfig.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ public Builder setInternalCheckers( - int index, com.google.monitoring.v3.UptimeCheckConfig.InternalChecker value) { + int index, com.google.monitoring.v3.InternalChecker value) { if (internalCheckersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9001,13 +7935,15 @@ public Builder setInternalCheckers( } /** *
-     * The internal checkers that this check will egress from.
+     * The internal checkers that this check will egress from. If `is_internal` is
+     * true and this list is empty, the check will egress from all
+     * InternalCheckers configured for the project that owns this CheckConfig.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ public Builder setInternalCheckers( - int index, com.google.monitoring.v3.UptimeCheckConfig.InternalChecker.Builder builderForValue) { + int index, com.google.monitoring.v3.InternalChecker.Builder builderForValue) { if (internalCheckersBuilder_ == null) { ensureInternalCheckersIsMutable(); internalCheckers_.set(index, builderForValue.build()); @@ -9019,12 +7955,14 @@ public Builder setInternalCheckers( } /** *
-     * The internal checkers that this check will egress from.
+     * The internal checkers that this check will egress from. If `is_internal` is
+     * true and this list is empty, the check will egress from all
+     * InternalCheckers configured for the project that owns this CheckConfig.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ - public Builder addInternalCheckers(com.google.monitoring.v3.UptimeCheckConfig.InternalChecker value) { + public Builder addInternalCheckers(com.google.monitoring.v3.InternalChecker value) { if (internalCheckersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9039,13 +7977,15 @@ public Builder addInternalCheckers(com.google.monitoring.v3.UptimeCheckConfig.In } /** *
-     * The internal checkers that this check will egress from.
+     * The internal checkers that this check will egress from. If `is_internal` is
+     * true and this list is empty, the check will egress from all
+     * InternalCheckers configured for the project that owns this CheckConfig.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ public Builder addInternalCheckers( - int index, com.google.monitoring.v3.UptimeCheckConfig.InternalChecker value) { + int index, com.google.monitoring.v3.InternalChecker value) { if (internalCheckersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9060,13 +8000,15 @@ public Builder addInternalCheckers( } /** *
-     * The internal checkers that this check will egress from.
+     * The internal checkers that this check will egress from. If `is_internal` is
+     * true and this list is empty, the check will egress from all
+     * InternalCheckers configured for the project that owns this CheckConfig.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ public Builder addInternalCheckers( - com.google.monitoring.v3.UptimeCheckConfig.InternalChecker.Builder builderForValue) { + com.google.monitoring.v3.InternalChecker.Builder builderForValue) { if (internalCheckersBuilder_ == null) { ensureInternalCheckersIsMutable(); internalCheckers_.add(builderForValue.build()); @@ -9078,13 +8020,15 @@ public Builder addInternalCheckers( } /** *
-     * The internal checkers that this check will egress from.
+     * The internal checkers that this check will egress from. If `is_internal` is
+     * true and this list is empty, the check will egress from all
+     * InternalCheckers configured for the project that owns this CheckConfig.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ public Builder addInternalCheckers( - int index, com.google.monitoring.v3.UptimeCheckConfig.InternalChecker.Builder builderForValue) { + int index, com.google.monitoring.v3.InternalChecker.Builder builderForValue) { if (internalCheckersBuilder_ == null) { ensureInternalCheckersIsMutable(); internalCheckers_.add(index, builderForValue.build()); @@ -9096,13 +8040,15 @@ public Builder addInternalCheckers( } /** *
-     * The internal checkers that this check will egress from.
+     * The internal checkers that this check will egress from. If `is_internal` is
+     * true and this list is empty, the check will egress from all
+     * InternalCheckers configured for the project that owns this CheckConfig.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ public Builder addAllInternalCheckers( - java.lang.Iterable values) { + java.lang.Iterable values) { if (internalCheckersBuilder_ == null) { ensureInternalCheckersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -9115,15 +8061,17 @@ public Builder addAllInternalCheckers( } /** *
-     * The internal checkers that this check will egress from.
+     * The internal checkers that this check will egress from. If `is_internal` is
+     * true and this list is empty, the check will egress from all
+     * InternalCheckers configured for the project that owns this CheckConfig.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ public Builder clearInternalCheckers() { if (internalCheckersBuilder_ == null) { internalCheckers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { internalCheckersBuilder_.clear(); @@ -9132,10 +8080,12 @@ public Builder clearInternalCheckers() { } /** *
-     * The internal checkers that this check will egress from.
+     * The internal checkers that this check will egress from. If `is_internal` is
+     * true and this list is empty, the check will egress from all
+     * InternalCheckers configured for the project that owns this CheckConfig.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ public Builder removeInternalCheckers(int index) { if (internalCheckersBuilder_ == null) { @@ -9149,23 +8099,27 @@ public Builder removeInternalCheckers(int index) { } /** *
-     * The internal checkers that this check will egress from.
+     * The internal checkers that this check will egress from. If `is_internal` is
+     * true and this list is empty, the check will egress from all
+     * InternalCheckers configured for the project that owns this CheckConfig.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ - public com.google.monitoring.v3.UptimeCheckConfig.InternalChecker.Builder getInternalCheckersBuilder( + public com.google.monitoring.v3.InternalChecker.Builder getInternalCheckersBuilder( int index) { return getInternalCheckersFieldBuilder().getBuilder(index); } /** *
-     * The internal checkers that this check will egress from.
+     * The internal checkers that this check will egress from. If `is_internal` is
+     * true and this list is empty, the check will egress from all
+     * InternalCheckers configured for the project that owns this CheckConfig.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ - public com.google.monitoring.v3.UptimeCheckConfig.InternalCheckerOrBuilder getInternalCheckersOrBuilder( + public com.google.monitoring.v3.InternalCheckerOrBuilder getInternalCheckersOrBuilder( int index) { if (internalCheckersBuilder_ == null) { return internalCheckers_.get(index); } else { @@ -9174,12 +8128,14 @@ public com.google.monitoring.v3.UptimeCheckConfig.InternalCheckerOrBuilder getIn } /** *
-     * The internal checkers that this check will egress from.
+     * The internal checkers that this check will egress from. If `is_internal` is
+     * true and this list is empty, the check will egress from all
+     * InternalCheckers configured for the project that owns this CheckConfig.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ - public java.util.List + public java.util.List getInternalCheckersOrBuilderList() { if (internalCheckersBuilder_ != null) { return internalCheckersBuilder_.getMessageOrBuilderList(); @@ -9189,46 +8145,52 @@ public com.google.monitoring.v3.UptimeCheckConfig.InternalCheckerOrBuilder getIn } /** *
-     * The internal checkers that this check will egress from.
+     * The internal checkers that this check will egress from. If `is_internal` is
+     * true and this list is empty, the check will egress from all
+     * InternalCheckers configured for the project that owns this CheckConfig.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ - public com.google.monitoring.v3.UptimeCheckConfig.InternalChecker.Builder addInternalCheckersBuilder() { + public com.google.monitoring.v3.InternalChecker.Builder addInternalCheckersBuilder() { return getInternalCheckersFieldBuilder().addBuilder( - com.google.monitoring.v3.UptimeCheckConfig.InternalChecker.getDefaultInstance()); + com.google.monitoring.v3.InternalChecker.getDefaultInstance()); } /** *
-     * The internal checkers that this check will egress from.
+     * The internal checkers that this check will egress from. If `is_internal` is
+     * true and this list is empty, the check will egress from all
+     * InternalCheckers configured for the project that owns this CheckConfig.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ - public com.google.monitoring.v3.UptimeCheckConfig.InternalChecker.Builder addInternalCheckersBuilder( + public com.google.monitoring.v3.InternalChecker.Builder addInternalCheckersBuilder( int index) { return getInternalCheckersFieldBuilder().addBuilder( - index, com.google.monitoring.v3.UptimeCheckConfig.InternalChecker.getDefaultInstance()); + index, com.google.monitoring.v3.InternalChecker.getDefaultInstance()); } /** *
-     * The internal checkers that this check will egress from.
+     * The internal checkers that this check will egress from. If `is_internal` is
+     * true and this list is empty, the check will egress from all
+     * InternalCheckers configured for the project that owns this CheckConfig.
      * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ - public java.util.List + public java.util.List getInternalCheckersBuilderList() { return getInternalCheckersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.InternalChecker, com.google.monitoring.v3.UptimeCheckConfig.InternalChecker.Builder, com.google.monitoring.v3.UptimeCheckConfig.InternalCheckerOrBuilder> + com.google.monitoring.v3.InternalChecker, com.google.monitoring.v3.InternalChecker.Builder, com.google.monitoring.v3.InternalCheckerOrBuilder> getInternalCheckersFieldBuilder() { if (internalCheckersBuilder_ == null) { internalCheckersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.monitoring.v3.UptimeCheckConfig.InternalChecker, com.google.monitoring.v3.UptimeCheckConfig.InternalChecker.Builder, com.google.monitoring.v3.UptimeCheckConfig.InternalCheckerOrBuilder>( + com.google.monitoring.v3.InternalChecker, com.google.monitoring.v3.InternalChecker.Builder, com.google.monitoring.v3.InternalCheckerOrBuilder>( internalCheckers_, - ((bitField0_ & 0x00000400) == 0x00000400), + ((bitField0_ & 0x00000800) == 0x00000800), getParentForChildren(), isClean()); internalCheckers_ = null; diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java index 946d36685cb5..3c8606ca4375 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckConfigOrBuilder.java @@ -57,7 +57,15 @@ public interface UptimeCheckConfigOrBuilder extends /** *
-   * The monitored resource associated with the configuration.
+   * The [monitored
+   * resource](https://cloud.google.com/monitoring/api/resources) associated
+   * with the configuration.
+   * The following monitored resource types are supported for uptime checks:
+   *   uptime_url
+   *   gce_instance
+   *   gae_app
+   *   aws_ec2_instance
+   *   aws_elb_load_balancer
    * 
* * .google.api.MonitoredResource monitored_resource = 3; @@ -65,7 +73,15 @@ public interface UptimeCheckConfigOrBuilder extends boolean hasMonitoredResource(); /** *
-   * The monitored resource associated with the configuration.
+   * The [monitored
+   * resource](https://cloud.google.com/monitoring/api/resources) associated
+   * with the configuration.
+   * The following monitored resource types are supported for uptime checks:
+   *   uptime_url
+   *   gce_instance
+   *   gae_app
+   *   aws_ec2_instance
+   *   aws_elb_load_balancer
    * 
* * .google.api.MonitoredResource monitored_resource = 3; @@ -73,7 +89,15 @@ public interface UptimeCheckConfigOrBuilder extends com.google.api.MonitoredResource getMonitoredResource(); /** *
-   * The monitored resource associated with the configuration.
+   * The [monitored
+   * resource](https://cloud.google.com/monitoring/api/resources) associated
+   * with the configuration.
+   * The following monitored resource types are supported for uptime checks:
+   *   uptime_url
+   *   gce_instance
+   *   gae_app
+   *   aws_ec2_instance
+   *   aws_elb_load_balancer
    * 
* * .google.api.MonitoredResource monitored_resource = 3; @@ -157,8 +181,10 @@ public interface UptimeCheckConfigOrBuilder extends /** *
-   * How often the uptime check is performed.
-   * Currently, only 1, 5, 10, and 15 minutes are supported. Required.
+   * How often, in seconds, the uptime check is performed.
+   * Currently, the only supported values are `60s` (1 minute), `300s`
+   * (5 minutes), `600s` (10 minutes), and `900s` (15 minutes). Optional,
+   * defaults to `300s`.
    * 
* * .google.protobuf.Duration period = 7; @@ -166,8 +192,10 @@ public interface UptimeCheckConfigOrBuilder extends boolean hasPeriod(); /** *
-   * How often the uptime check is performed.
-   * Currently, only 1, 5, 10, and 15 minutes are supported. Required.
+   * How often, in seconds, the uptime check is performed.
+   * Currently, the only supported values are `60s` (1 minute), `300s`
+   * (5 minutes), `600s` (10 minutes), and `900s` (15 minutes). Optional,
+   * defaults to `300s`.
    * 
* * .google.protobuf.Duration period = 7; @@ -175,8 +203,10 @@ public interface UptimeCheckConfigOrBuilder extends com.google.protobuf.Duration getPeriod(); /** *
-   * How often the uptime check is performed.
-   * Currently, only 1, 5, 10, and 15 minutes are supported. Required.
+   * How often, in seconds, the uptime check is performed.
+   * Currently, the only supported values are `60s` (1 minute), `300s`
+   * (5 minutes), `600s` (10 minutes), and `900s` (15 minutes). Optional,
+   * defaults to `300s`.
    * 
* * .google.protobuf.Duration period = 7; @@ -339,46 +369,65 @@ com.google.monitoring.v3.UptimeCheckConfig.ContentMatcherOrBuilder getContentMat /** *
-   * The internal checkers that this check will egress from.
+   * Denotes whether this is a check that egresses from InternalCheckers.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * bool is_internal = 15; */ - java.util.List + boolean getIsInternal(); + + /** + *
+   * The internal checkers that this check will egress from. If `is_internal` is
+   * true and this list is empty, the check will egress from all
+   * InternalCheckers configured for the project that owns this CheckConfig.
+   * 
+ * + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; + */ + java.util.List getInternalCheckersList(); /** *
-   * The internal checkers that this check will egress from.
+   * The internal checkers that this check will egress from. If `is_internal` is
+   * true and this list is empty, the check will egress from all
+   * InternalCheckers configured for the project that owns this CheckConfig.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ - com.google.monitoring.v3.UptimeCheckConfig.InternalChecker getInternalCheckers(int index); + com.google.monitoring.v3.InternalChecker getInternalCheckers(int index); /** *
-   * The internal checkers that this check will egress from.
+   * The internal checkers that this check will egress from. If `is_internal` is
+   * true and this list is empty, the check will egress from all
+   * InternalCheckers configured for the project that owns this CheckConfig.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ int getInternalCheckersCount(); /** *
-   * The internal checkers that this check will egress from.
+   * The internal checkers that this check will egress from. If `is_internal` is
+   * true and this list is empty, the check will egress from all
+   * InternalCheckers configured for the project that owns this CheckConfig.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ - java.util.List + java.util.List getInternalCheckersOrBuilderList(); /** *
-   * The internal checkers that this check will egress from.
+   * The internal checkers that this check will egress from. If `is_internal` is
+   * true and this list is empty, the check will egress from all
+   * InternalCheckers configured for the project that owns this CheckConfig.
    * 
* - * repeated .google.monitoring.v3.UptimeCheckConfig.InternalChecker internal_checkers = 14; + * repeated .google.monitoring.v3.InternalChecker internal_checkers = 14; */ - com.google.monitoring.v3.UptimeCheckConfig.InternalCheckerOrBuilder getInternalCheckersOrBuilder( + com.google.monitoring.v3.InternalCheckerOrBuilder getInternalCheckersOrBuilder( int index); public com.google.monitoring.v3.UptimeCheckConfig.ResourceCase getResourceCase(); diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeProto.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeProto.java index f287b964e09e..07a8dc8133e4 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeProto.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeProto.java @@ -14,6 +14,11 @@ public static void registerAllExtensions( registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_InternalChecker_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_InternalChecker_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor; static final @@ -49,11 +54,6 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_monitoring_v3_UptimeCheckConfig_InternalChecker_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_monitoring_v3_UptimeCheckConfig_InternalChecker_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_monitoring_v3_UptimeCheckIp_descriptor; static final @@ -71,52 +71,52 @@ public static void registerAllExtensions( "\n!google/monitoring/v3/uptime.proto\022\024goo" + "gle.monitoring.v3\032#google/api/monitored_" + "resource.proto\032\036google/protobuf/duration" + - ".proto\"\262\n\n\021UptimeCheckConfig\022\014\n\004name\030\001 \001" + - "(\t\022\024\n\014display_name\030\002 \001(\t\022;\n\022monitored_re" + - "source\030\003 \001(\0132\035.google.api.MonitoredResou" + - "rceH\000\022O\n\016resource_group\030\004 \001(\01325.google.m" + - "onitoring.v3.UptimeCheckConfig.ResourceG" + - "roupH\000\022G\n\nhttp_check\030\005 \001(\01321.google.moni" + - "toring.v3.UptimeCheckConfig.HttpCheckH\001\022" + - "E\n\ttcp_check\030\006 \001(\01320.google.monitoring.v" + - "3.UptimeCheckConfig.TcpCheckH\001\022)\n\006period" + - "\030\007 \001(\0132\031.google.protobuf.Duration\022*\n\007tim" + - "eout\030\010 \001(\0132\031.google.protobuf.Duration\022P\n" + - "\020content_matchers\030\t \003(\01326.google.monitor" + - "ing.v3.UptimeCheckConfig.ContentMatcher\022" + - "A\n\020selected_regions\030\n \003(\0162\'.google.monit" + - "oring.v3.UptimeCheckRegion\022R\n\021internal_c" + - "heckers\030\016 \003(\01327.google.monitoring.v3.Upt" + - "imeCheckConfig.InternalChecker\032a\n\rResour" + - "ceGroup\022\020\n\010group_id\030\001 \001(\t\022>\n\rresource_ty" + - "pe\030\002 \001(\0162\'.google.monitoring.v3.GroupRes" + - "ourceType\032\344\002\n\tHttpCheck\022\017\n\007use_ssl\030\001 \001(\010" + - "\022\014\n\004path\030\002 \001(\t\022\014\n\004port\030\003 \001(\005\022X\n\tauth_inf" + - "o\030\004 \001(\0132E.google.monitoring.v3.UptimeChe" + - "ckConfig.HttpCheck.BasicAuthentication\022\024" + - "\n\014mask_headers\030\005 \001(\010\022O\n\007headers\030\006 \003(\0132>." + - "google.monitoring.v3.UptimeCheckConfig.H" + - "ttpCheck.HeadersEntry\0329\n\023BasicAuthentica" + - "tion\022\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t" + - "\032.\n\014HeadersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + - " \001(\t:\0028\001\032\030\n\010TcpCheck\022\014\n\004port\030\001 \001(\005\032!\n\016Co" + - "ntentMatcher\022\017\n\007content\030\001 \001(\t\032r\n\017Interna" + - "lChecker\022\022\n\nproject_id\030\001 \001(\t\022\017\n\007network\030" + - "\002 \001(\t\022\020\n\010gcp_zone\030\003 \001(\t\022\022\n\nchecker_id\030\004 " + - "\001(\t\022\024\n\014display_name\030\005 \001(\tB\n\n\010resourceB\024\n" + - "\022check_request_type\"n\n\rUptimeCheckIp\0227\n\006" + - "region\030\001 \001(\0162\'.google.monitoring.v3.Upti" + - "meCheckRegion\022\020\n\010location\030\002 \001(\t\022\022\n\nip_ad" + - "dress\030\003 \001(\t*e\n\021UptimeCheckRegion\022\026\n\022REGI" + - "ON_UNSPECIFIED\020\000\022\007\n\003USA\020\001\022\n\n\006EUROPE\020\002\022\021\n" + - "\rSOUTH_AMERICA\020\003\022\020\n\014ASIA_PACIFIC\020\004*[\n\021Gr" + - "oupResourceType\022\035\n\031RESOURCE_TYPE_UNSPECI" + - "FIED\020\000\022\014\n\010INSTANCE\020\001\022\031\n\025AWS_ELB_LOAD_BAL" + - "ANCER\020\002B\243\001\n\030com.google.monitoring.v3B\013Up" + - "timeProtoP\001Z>google.golang.org/genproto/" + - "googleapis/monitoring/v3;monitoring\252\002\032Go" + - "ogle.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\" + - "Monitoring\\V3b\006proto3" + ".proto\"r\n\017InternalChecker\022\022\n\nproject_id\030" + + "\001 \001(\t\022\017\n\007network\030\002 \001(\t\022\020\n\010gcp_zone\030\003 \001(\t" + + "\022\022\n\nchecker_id\030\004 \001(\t\022\024\n\014display_name\030\005 \001" + + "(\t\"\301\t\n\021UptimeCheckConfig\022\014\n\004name\030\001 \001(\t\022\024" + + "\n\014display_name\030\002 \001(\t\022;\n\022monitored_resour" + + "ce\030\003 \001(\0132\035.google.api.MonitoredResourceH" + + "\000\022O\n\016resource_group\030\004 \001(\01325.google.monit" + + "oring.v3.UptimeCheckConfig.ResourceGroup" + + "H\000\022G\n\nhttp_check\030\005 \001(\01321.google.monitori" + + "ng.v3.UptimeCheckConfig.HttpCheckH\001\022E\n\tt" + + "cp_check\030\006 \001(\01320.google.monitoring.v3.Up" + + "timeCheckConfig.TcpCheckH\001\022)\n\006period\030\007 \001" + + "(\0132\031.google.protobuf.Duration\022*\n\007timeout" + + "\030\010 \001(\0132\031.google.protobuf.Duration\022P\n\020con" + + "tent_matchers\030\t \003(\01326.google.monitoring." + + "v3.UptimeCheckConfig.ContentMatcher\022A\n\020s" + + "elected_regions\030\n \003(\0162\'.google.monitorin" + + "g.v3.UptimeCheckRegion\022\023\n\013is_internal\030\017 " + + "\001(\010\022@\n\021internal_checkers\030\016 \003(\0132%.google." + + "monitoring.v3.InternalChecker\032a\n\rResourc" + + "eGroup\022\020\n\010group_id\030\001 \001(\t\022>\n\rresource_typ" + + "e\030\002 \001(\0162\'.google.monitoring.v3.GroupReso" + + "urceType\032\344\002\n\tHttpCheck\022\017\n\007use_ssl\030\001 \001(\010\022" + + "\014\n\004path\030\002 \001(\t\022\014\n\004port\030\003 \001(\005\022X\n\tauth_info" + + "\030\004 \001(\0132E.google.monitoring.v3.UptimeChec" + + "kConfig.HttpCheck.BasicAuthentication\022\024\n" + + "\014mask_headers\030\005 \001(\010\022O\n\007headers\030\006 \003(\0132>.g" + + "oogle.monitoring.v3.UptimeCheckConfig.Ht" + + "tpCheck.HeadersEntry\0329\n\023BasicAuthenticat" + + "ion\022\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\032" + + ".\n\014HeadersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\032\030\n\010TcpCheck\022\014\n\004port\030\001 \001(\005\032!\n\016Con" + + "tentMatcher\022\017\n\007content\030\001 \001(\tB\n\n\010resource" + + "B\024\n\022check_request_type\"n\n\rUptimeCheckIp\022" + + "7\n\006region\030\001 \001(\0162\'.google.monitoring.v3.U" + + "ptimeCheckRegion\022\020\n\010location\030\002 \001(\t\022\022\n\nip" + + "_address\030\003 \001(\t*e\n\021UptimeCheckRegion\022\026\n\022R" + + "EGION_UNSPECIFIED\020\000\022\007\n\003USA\020\001\022\n\n\006EUROPE\020\002" + + "\022\021\n\rSOUTH_AMERICA\020\003\022\020\n\014ASIA_PACIFIC\020\004*[\n" + + "\021GroupResourceType\022\035\n\031RESOURCE_TYPE_UNSP" + + "ECIFIED\020\000\022\014\n\010INSTANCE\020\001\022\031\n\025AWS_ELB_LOAD_" + + "BALANCER\020\002B\243\001\n\030com.google.monitoring.v3B" + + "\013UptimeProtoP\001Z>google.golang.org/genpro" + + "to/googleapis/monitoring/v3;monitoring\252\002" + + "\032Google.Cloud.Monitoring.V3\312\002\032Google\\Clo" + + "ud\\Monitoring\\V3b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -132,12 +132,18 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.api.MonitoredResourceProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), }, assigner); - internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor = + internal_static_google_monitoring_v3_InternalChecker_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_InternalChecker_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_InternalChecker_descriptor, + new java.lang.String[] { "ProjectId", "Network", "GcpZone", "CheckerId", "DisplayName", }); + internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor = + getDescriptor().getMessageTypes().get(1); internal_static_google_monitoring_v3_UptimeCheckConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor, - new java.lang.String[] { "Name", "DisplayName", "MonitoredResource", "ResourceGroup", "HttpCheck", "TcpCheck", "Period", "Timeout", "ContentMatchers", "SelectedRegions", "InternalCheckers", "Resource", "CheckRequestType", }); + new java.lang.String[] { "Name", "DisplayName", "MonitoredResource", "ResourceGroup", "HttpCheck", "TcpCheck", "Period", "Timeout", "ContentMatchers", "SelectedRegions", "IsInternal", "InternalCheckers", "Resource", "CheckRequestType", }); internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_descriptor = internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(0); internal_static_google_monitoring_v3_UptimeCheckConfig_ResourceGroup_fieldAccessorTable = new @@ -174,14 +180,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_monitoring_v3_UptimeCheckConfig_ContentMatcher_descriptor, new java.lang.String[] { "Content", }); - internal_static_google_monitoring_v3_UptimeCheckConfig_InternalChecker_descriptor = - internal_static_google_monitoring_v3_UptimeCheckConfig_descriptor.getNestedTypes().get(4); - internal_static_google_monitoring_v3_UptimeCheckConfig_InternalChecker_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_monitoring_v3_UptimeCheckConfig_InternalChecker_descriptor, - new java.lang.String[] { "ProjectId", "Network", "GcpZone", "CheckerId", "DisplayName", }); internal_static_google_monitoring_v3_UptimeCheckIp_descriptor = - getDescriptor().getMessageTypes().get(1); + getDescriptor().getMessageTypes().get(2); internal_static_google_monitoring_v3_UptimeCheckIp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_monitoring_v3_UptimeCheckIp_descriptor, diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java index 06f9d0fb1a25..5874a296e9cf 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeServiceProto.java @@ -70,56 +70,56 @@ public static void registerAllExtensions( " google/protobuf/field_mask.proto\"V\n\035Lis" + "tUptimeCheckConfigsRequest\022\016\n\006parent\030\001 \001" + "(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(" + - "\t\"\200\001\n\036ListUptimeCheckConfigsResponse\022E\n\024" + + "\t\"\224\001\n\036ListUptimeCheckConfigsResponse\022E\n\024" + "uptime_check_configs\030\001 \003(\0132\'.google.moni" + "toring.v3.UptimeCheckConfig\022\027\n\017next_page" + - "_token\030\002 \001(\t\"+\n\033GetUptimeCheckConfigRequ" + - "est\022\014\n\004name\030\001 \001(\t\"v\n\036CreateUptimeCheckCo" + - "nfigRequest\022\016\n\006parent\030\001 \001(\t\022D\n\023uptime_ch" + - "eck_config\030\002 \001(\0132\'.google.monitoring.v3." + - "UptimeCheckConfig\"\227\001\n\036UpdateUptimeCheckC" + - "onfigRequest\022/\n\013update_mask\030\002 \001(\0132\032.goog" + - "le.protobuf.FieldMask\022D\n\023uptime_check_co" + - "nfig\030\003 \001(\0132\'.google.monitoring.v3.Uptime" + - "CheckConfig\".\n\036DeleteUptimeCheckConfigRe" + - "quest\022\014\n\004name\030\001 \001(\t\"B\n\031ListUptimeCheckIp" + - "sRequest\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + - "n\030\003 \001(\t\"t\n\032ListUptimeCheckIpsResponse\022=\n" + - "\020uptime_check_ips\030\001 \003(\0132#.google.monitor" + - "ing.v3.UptimeCheckIp\022\027\n\017next_page_token\030" + - "\002 \001(\t2\307\010\n\022UptimeCheckService\022\267\001\n\026ListUpt" + - "imeCheckConfigs\0223.google.monitoring.v3.L" + - "istUptimeCheckConfigsRequest\0324.google.mo" + - "nitoring.v3.ListUptimeCheckConfigsRespon" + - "se\"2\202\323\344\223\002,\022*/v3/{parent=projects/*}/upti" + - "meCheckConfigs\022\246\001\n\024GetUptimeCheckConfig\022" + - "1.google.monitoring.v3.GetUptimeCheckCon" + - "figRequest\032\'.google.monitoring.v3.Uptime" + - "CheckConfig\"2\202\323\344\223\002,\022*/v3/{name=projects/" + - "*/uptimeCheckConfigs/*}\022\301\001\n\027CreateUptime" + - "CheckConfig\0224.google.monitoring.v3.Creat" + - "eUptimeCheckConfigRequest\032\'.google.monit" + - "oring.v3.UptimeCheckConfig\"G\202\323\344\223\002A\"*/v3/" + - "{parent=projects/*}/uptimeCheckConfigs:\023" + - "uptime_check_config\022\325\001\n\027UpdateUptimeChec" + - "kConfig\0224.google.monitoring.v3.UpdateUpt" + - "imeCheckConfigRequest\032\'.google.monitorin" + - "g.v3.UptimeCheckConfig\"[\202\323\344\223\002U2>/v3/{upt" + - "ime_check_config.name=projects/*/uptimeC" + - "heckConfigs/*}:\023uptime_check_config\022\233\001\n\027" + - "DeleteUptimeCheckConfig\0224.google.monitor" + - "ing.v3.DeleteUptimeCheckConfigRequest\032\026." + - "google.protobuf.Empty\"2\202\323\344\223\002,**/v3/{name" + - "=projects/*/uptimeCheckConfigs/*}\022\223\001\n\022Li" + - "stUptimeCheckIps\022/.google.monitoring.v3." + - "ListUptimeCheckIpsRequest\0320.google.monit" + - "oring.v3.ListUptimeCheckIpsResponse\"\032\202\323\344" + - "\223\002\024\022\022/v3/uptimeCheckIpsB\252\001\n\030com.google.m" + - "onitoring.v3B\022UptimeServiceProtoP\001Z>goog" + - "le.golang.org/genproto/googleapis/monito" + - "ring/v3;monitoring\252\002\032Google.Cloud.Monito" + - "ring.V3\312\002\032Google\\Cloud\\Monitoring\\V3b\006pr" + - "oto3" + "_token\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(\005\"+\n\033GetU" + + "ptimeCheckConfigRequest\022\014\n\004name\030\001 \001(\t\"v\n" + + "\036CreateUptimeCheckConfigRequest\022\016\n\006paren" + + "t\030\001 \001(\t\022D\n\023uptime_check_config\030\002 \001(\0132\'.g" + + "oogle.monitoring.v3.UptimeCheckConfig\"\227\001" + + "\n\036UpdateUptimeCheckConfigRequest\022/\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "k\022D\n\023uptime_check_config\030\003 \001(\0132\'.google." + + "monitoring.v3.UptimeCheckConfig\".\n\036Delet" + + "eUptimeCheckConfigRequest\022\014\n\004name\030\001 \001(\t\"" + + "B\n\031ListUptimeCheckIpsRequest\022\021\n\tpage_siz" + + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"t\n\032ListUptim" + + "eCheckIpsResponse\022=\n\020uptime_check_ips\030\001 " + + "\003(\0132#.google.monitoring.v3.UptimeCheckIp" + + "\022\027\n\017next_page_token\030\002 \001(\t2\307\010\n\022UptimeChec" + + "kService\022\267\001\n\026ListUptimeCheckConfigs\0223.go" + + "ogle.monitoring.v3.ListUptimeCheckConfig" + + "sRequest\0324.google.monitoring.v3.ListUpti" + + "meCheckConfigsResponse\"2\202\323\344\223\002,\022*/v3/{par" + + "ent=projects/*}/uptimeCheckConfigs\022\246\001\n\024G" + + "etUptimeCheckConfig\0221.google.monitoring." + + "v3.GetUptimeCheckConfigRequest\032\'.google." + + "monitoring.v3.UptimeCheckConfig\"2\202\323\344\223\002,\022" + + "*/v3/{name=projects/*/uptimeCheckConfigs" + + "/*}\022\301\001\n\027CreateUptimeCheckConfig\0224.google" + + ".monitoring.v3.CreateUptimeCheckConfigRe" + + "quest\032\'.google.monitoring.v3.UptimeCheck" + + "Config\"G\202\323\344\223\002A\"*/v3/{parent=projects/*}/" + + "uptimeCheckConfigs:\023uptime_check_config\022" + + "\325\001\n\027UpdateUptimeCheckConfig\0224.google.mon" + + "itoring.v3.UpdateUptimeCheckConfigReques" + + "t\032\'.google.monitoring.v3.UptimeCheckConf" + + "ig\"[\202\323\344\223\002U2>/v3/{uptime_check_config.nam" + + "e=projects/*/uptimeCheckConfigs/*}:\023upti" + + "me_check_config\022\233\001\n\027DeleteUptimeCheckCon" + + "fig\0224.google.monitoring.v3.DeleteUptimeC" + + "heckConfigRequest\032\026.google.protobuf.Empt" + + "y\"2\202\323\344\223\002,**/v3/{name=projects/*/uptimeCh" + + "eckConfigs/*}\022\223\001\n\022ListUptimeCheckIps\022/.g" + + "oogle.monitoring.v3.ListUptimeCheckIpsRe" + + "quest\0320.google.monitoring.v3.ListUptimeC" + + "heckIpsResponse\"\032\202\323\344\223\002\024\022\022/v3/uptimeCheck" + + "IpsB\252\001\n\030com.google.monitoring.v3B\022Uptime" + + "ServiceProtoP\001Z>google.golang.org/genpro" + + "to/googleapis/monitoring/v3;monitoring\252\002" + + "\032Google.Cloud.Monitoring.V3\312\002\032Google\\Clo" + + "ud\\Monitoring\\V3b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -148,7 +148,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_monitoring_v3_ListUptimeCheckConfigsResponse_descriptor, - new java.lang.String[] { "UptimeCheckConfigs", "NextPageToken", }); + new java.lang.String[] { "UptimeCheckConfigs", "NextPageToken", "TotalSize", }); internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_monitoring_v3_GetUptimeCheckConfigRequest_fieldAccessorTable = new diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/google/monitoring/v3/DroppedLabelsOuterClass.java b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/google/monitoring/v3/DroppedLabelsOuterClass.java new file mode 100644 index 000000000000..e838017d30c4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/java/google/monitoring/v3/DroppedLabelsOuterClass.java @@ -0,0 +1,892 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/monitoring/v3/dropped_labels.proto + +package google.monitoring.v3; + +public final class DroppedLabelsOuterClass { + private DroppedLabelsOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface DroppedLabelsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.DroppedLabels) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Map from label to its value, for all labels dropped in any aggregation.
+     * 
+ * + * map<string, string> label = 1; + */ + int getLabelCount(); + /** + *
+     * Map from label to its value, for all labels dropped in any aggregation.
+     * 
+ * + * map<string, string> label = 1; + */ + boolean containsLabel( + java.lang.String key); + /** + * Use {@link #getLabelMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabel(); + /** + *
+     * Map from label to its value, for all labels dropped in any aggregation.
+     * 
+ * + * map<string, string> label = 1; + */ + java.util.Map + getLabelMap(); + /** + *
+     * Map from label to its value, for all labels dropped in any aggregation.
+     * 
+ * + * map<string, string> label = 1; + */ + + java.lang.String getLabelOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Map from label to its value, for all labels dropped in any aggregation.
+     * 
+ * + * map<string, string> label = 1; + */ + + java.lang.String getLabelOrThrow( + java.lang.String key); + } + /** + *
+   * A set of (label, value) pairs which were dropped during aggregation, attached
+   * to google.api.Distribution.Exemplars in google.api.Distribution values during
+   * aggregation.
+   * These values are used in combination with the label values that remain on the
+   * aggregated Distribution timeseries to construct the full label set for the
+   * exemplar values.  The resulting full label set may be used to identify the
+   * specific task/job/instance (for example) which may be contributing to a
+   * long-tail, while allowing the storage savings of only storing aggregated
+   * distribution values for a large group.
+   * Note that there are no guarantees on ordering of the labels from
+   * exemplar-to-exemplar and from distribution-to-distribution in the same
+   * stream, and there may be duplicates.  It is up to clients to resolve any
+   * ambiguities.
+   * 
+ * + * Protobuf type {@code google.monitoring.v3.DroppedLabels} + */ + public static final class DroppedLabels extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.monitoring.v3.DroppedLabels) + DroppedLabelsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DroppedLabels.newBuilder() to construct. + private DroppedLabels(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DroppedLabels() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DroppedLabels( + 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) == 0x00000001)) { + label_ = com.google.protobuf.MapField.newMapField( + LabelDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + label__ = input.readMessage( + LabelDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + label_.getMutableMap().put( + label__.getKey(), label__.getValue()); + break; + } + default: { + if (!parseUnknownFieldProto3( + 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 google.monitoring.v3.DroppedLabelsOuterClass.internal_static_google_monitoring_v3_DroppedLabels_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetLabel(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.monitoring.v3.DroppedLabelsOuterClass.internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels.class, google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels.Builder.class); + } + + public static final int LABEL_FIELD_NUMBER = 1; + private static final class LabelDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + google.monitoring.v3.DroppedLabelsOuterClass.internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> label_; + private com.google.protobuf.MapField + internalGetLabel() { + if (label_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelDefaultEntryHolder.defaultEntry); + } + return label_; + } + + public int getLabelCount() { + return internalGetLabel().getMap().size(); + } + /** + *
+     * Map from label to its value, for all labels dropped in any aggregation.
+     * 
+ * + * map<string, string> label = 1; + */ + + public boolean containsLabel( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLabel().getMap().containsKey(key); + } + /** + * Use {@link #getLabelMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLabel() { + return getLabelMap(); + } + /** + *
+     * Map from label to its value, for all labels dropped in any aggregation.
+     * 
+ * + * map<string, string> label = 1; + */ + + public java.util.Map getLabelMap() { + return internalGetLabel().getMap(); + } + /** + *
+     * Map from label to its value, for all labels dropped in any aggregation.
+     * 
+ * + * map<string, string> label = 1; + */ + + public java.lang.String getLabelOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabel().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Map from label to its value, for all labels dropped in any aggregation.
+     * 
+ * + * map<string, string> label = 1; + */ + + public java.lang.String getLabelOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabel().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabel(), + LabelDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetLabel().getMap().entrySet()) { + com.google.protobuf.MapEntry + label__ = LabelDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, label__); + } + 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 google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels)) { + return super.equals(obj); + } + google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels other = (google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels) obj; + + boolean result = true; + result = result && internalGetLabel().equals( + other.internalGetLabel()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetLabel().getMap().isEmpty()) { + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabel().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels 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 google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels 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 google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels 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(google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels 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 set of (label, value) pairs which were dropped during aggregation, attached
+     * to google.api.Distribution.Exemplars in google.api.Distribution values during
+     * aggregation.
+     * These values are used in combination with the label values that remain on the
+     * aggregated Distribution timeseries to construct the full label set for the
+     * exemplar values.  The resulting full label set may be used to identify the
+     * specific task/job/instance (for example) which may be contributing to a
+     * long-tail, while allowing the storage savings of only storing aggregated
+     * distribution values for a large group.
+     * Note that there are no guarantees on ordering of the labels from
+     * exemplar-to-exemplar and from distribution-to-distribution in the same
+     * stream, and there may be duplicates.  It is up to clients to resolve any
+     * ambiguities.
+     * 
+ * + * Protobuf type {@code google.monitoring.v3.DroppedLabels} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.monitoring.v3.DroppedLabels) + google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabelsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.monitoring.v3.DroppedLabelsOuterClass.internal_static_google_monitoring_v3_DroppedLabels_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetLabel(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableLabel(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.monitoring.v3.DroppedLabelsOuterClass.internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels.class, google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels.Builder.class); + } + + // Construct using google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableLabel().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.monitoring.v3.DroppedLabelsOuterClass.internal_static_google_monitoring_v3_DroppedLabels_descriptor; + } + + @java.lang.Override + public google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels getDefaultInstanceForType() { + return google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels.getDefaultInstance(); + } + + @java.lang.Override + public google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels build() { + google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels buildPartial() { + google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels result = new google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels(this); + int from_bitField0_ = bitField0_; + result.label_ = internalGetLabel(); + result.label_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels) { + return mergeFrom((google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels other) { + if (other == google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels.getDefaultInstance()) return this; + internalGetMutableLabel().mergeFrom( + other.internalGetLabel()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> label_; + private com.google.protobuf.MapField + internalGetLabel() { + if (label_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelDefaultEntryHolder.defaultEntry); + } + return label_; + } + private com.google.protobuf.MapField + internalGetMutableLabel() { + onChanged();; + if (label_ == null) { + label_ = com.google.protobuf.MapField.newMapField( + LabelDefaultEntryHolder.defaultEntry); + } + if (!label_.isMutable()) { + label_ = label_.copy(); + } + return label_; + } + + public int getLabelCount() { + return internalGetLabel().getMap().size(); + } + /** + *
+       * Map from label to its value, for all labels dropped in any aggregation.
+       * 
+ * + * map<string, string> label = 1; + */ + + public boolean containsLabel( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLabel().getMap().containsKey(key); + } + /** + * Use {@link #getLabelMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLabel() { + return getLabelMap(); + } + /** + *
+       * Map from label to its value, for all labels dropped in any aggregation.
+       * 
+ * + * map<string, string> label = 1; + */ + + public java.util.Map getLabelMap() { + return internalGetLabel().getMap(); + } + /** + *
+       * Map from label to its value, for all labels dropped in any aggregation.
+       * 
+ * + * map<string, string> label = 1; + */ + + public java.lang.String getLabelOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabel().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Map from label to its value, for all labels dropped in any aggregation.
+       * 
+ * + * map<string, string> label = 1; + */ + + public java.lang.String getLabelOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabel().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabel() { + internalGetMutableLabel().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Map from label to its value, for all labels dropped in any aggregation.
+       * 
+ * + * map<string, string> label = 1; + */ + + public Builder removeLabel( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabel().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabel() { + return internalGetMutableLabel().getMutableMap(); + } + /** + *
+       * Map from label to its value, for all labels dropped in any aggregation.
+       * 
+ * + * map<string, string> label = 1; + */ + public Builder putLabel( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabel().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Map from label to its value, for all labels dropped in any aggregation.
+       * 
+ * + * map<string, string> label = 1; + */ + + public Builder putAllLabel( + java.util.Map values) { + internalGetMutableLabel().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(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.DroppedLabels) + } + + // @@protoc_insertion_point(class_scope:google.monitoring.v3.DroppedLabels) + private static final google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels(); + } + + public static google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DroppedLabels parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DroppedLabels(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.monitoring.v3.DroppedLabelsOuterClass.DroppedLabels getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_DroppedLabels_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n)google/monitoring/v3/dropped_labels.pr" + + "oto\022\024google.monitoring.v3\032\034google/api/an" + + "notations.proto\"|\n\rDroppedLabels\022=\n\005labe" + + "l\030\001 \003(\0132..google.monitoring.v3.DroppedLa" + + "bels.LabelEntry\032,\n\nLabelEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001B@Z>google.golang.o" + + "rg/genproto/googleapis/monitoring/v3;mon" + + "itoringb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }, assigner); + internal_static_google_monitoring_v3_DroppedLabels_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_monitoring_v3_DroppedLabels_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_DroppedLabels_descriptor, + new java.lang.String[] { "Label", }); + internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor = + internal_static_google_monitoring_v3_DroppedLabels_descriptor.getNestedTypes().get(0); + internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_DroppedLabels_LabelEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto index 18d87174d005..4c995b13bcc5 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google Inc. +// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -142,15 +142,14 @@ message AlertPolicy { // The amount of time that a time series must violate the // threshold to be considered failing. Currently, only values - // that are a multiple of a minute--e.g. 60, 120, or 300 + // that are a multiple of a minute--e.g., 0, 60, 120, or 300 // seconds--are supported. If an invalid value is given, an - // error will be returned. The `Duration.nanos` field is - // ignored. When choosing a duration, it is useful to keep in mind the - // frequency of the underlying time series data (which may also be - // affected by any alignments specified in the `aggregation` field); - // a good duration is long enough so that a single outlier does not - // generate spurious alerts, but short enough that unhealthy states - // are detected and alerted on quickly. + // error will be returned. When choosing a duration, it is useful to + // keep in mind the frequency of the underlying time series data + // (which may also be affected by any alignments specified in the + // `aggregations` field); a good duration is long enough so that a single + // outlier does not generate spurious alerts, but short enough that + // unhealthy states are detected and alerted on quickly. google.protobuf.Duration duration = 6; // The number/percent of time series for which the comparison must hold diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto index ca2839f97c16..4bcb9d36e862 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert_service.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google Inc. +// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/common.proto b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/common.proto index 84d8423fd69a..3e9653a8588d 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/common.proto +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/common.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google Inc. +// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -395,6 +395,8 @@ enum ComparisonType { // [service tiers documentation](https://cloud.google.com/monitoring/accounts/tiers) // for more details. enum ServiceTier { + option deprecated = true; + // An invalid sentinel value, used to indicate that a tier has not // been provided explicitly. SERVICE_TIER_UNSPECIFIED = 0; diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/dropped_labels.proto b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/dropped_labels.proto new file mode 100644 index 000000000000..bc3b8545b925 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/dropped_labels.proto @@ -0,0 +1,42 @@ +// Copyright 2018 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.monitoring.v3; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/monitoring/v3;monitoring"; + + +// A set of (label, value) pairs which were dropped during aggregation, attached +// to google.api.Distribution.Exemplars in google.api.Distribution values during +// aggregation. +// +// These values are used in combination with the label values that remain on the +// aggregated Distribution timeseries to construct the full label set for the +// exemplar values. The resulting full label set may be used to identify the +// specific task/job/instance (for example) which may be contributing to a +// long-tail, while allowing the storage savings of only storing aggregated +// distribution values for a large group. +// +// Note that there are no guarantees on ordering of the labels from +// exemplar-to-exemplar and from distribution-to-distribution in the same +// stream, and there may be duplicates. It is up to clients to resolve any +// ambiguities. +message DroppedLabels { + // Map from label to its value, for all labels dropped in any aggregation. + map label = 1; +} diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group.proto b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group.proto index 0c98bebead9b..bad5016c199e 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group.proto +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group.proto @@ -1,4 +1,4 @@ -// Copyright 2016 Google Inc. +// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group_service.proto b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group_service.proto index 3d7493cf0ad1..7cfae976940a 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group_service.proto +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/group_service.proto @@ -1,4 +1,4 @@ -// Copyright 2016 Google Inc. +// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -31,7 +31,7 @@ option php_namespace = "Google\\Cloud\\Monitoring\\V3"; // The Group API lets you inspect and manage your -// [groups](google.monitoring.v3.Group). +// [groups](#google.monitoring.v3.Group). // // A group is a named filter that is used to identify // a collection of monitored resources. Groups are typically used to @@ -45,33 +45,47 @@ option php_namespace = "Google\\Cloud\\Monitoring\\V3"; service GroupService { // Lists the existing groups. rpc ListGroups(ListGroupsRequest) returns (ListGroupsResponse) { - option (google.api.http) = { get: "/v3/{name=projects/*}/groups" }; + option (google.api.http) = { + get: "/v3/{name=projects/*}/groups" + }; } // Gets a single group. rpc GetGroup(GetGroupRequest) returns (Group) { - option (google.api.http) = { get: "/v3/{name=projects/*/groups/*}" }; + option (google.api.http) = { + get: "/v3/{name=projects/*/groups/*}" + }; } // Creates a new group. rpc CreateGroup(CreateGroupRequest) returns (Group) { - option (google.api.http) = { post: "/v3/{name=projects/*}/groups" body: "group" }; + option (google.api.http) = { + post: "/v3/{name=projects/*}/groups" + body: "group" + }; } // Updates an existing group. // You can change any group attributes except `name`. rpc UpdateGroup(UpdateGroupRequest) returns (Group) { - option (google.api.http) = { put: "/v3/{group.name=projects/*/groups/*}" body: "group" }; + option (google.api.http) = { + put: "/v3/{group.name=projects/*/groups/*}" + body: "group" + }; } // Deletes an existing group. rpc DeleteGroup(DeleteGroupRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { delete: "/v3/{name=projects/*/groups/*}" }; + option (google.api.http) = { + delete: "/v3/{name=projects/*/groups/*}" + }; } // Lists the monitored resources that are members of a group. rpc ListGroupMembers(ListGroupMembersRequest) returns (ListGroupMembersResponse) { - option (google.api.http) = { get: "/v3/{name=projects/*/groups/*}/members" }; + option (google.api.http) = { + get: "/v3/{name=projects/*/groups/*}/members" + }; } } diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric.proto b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric.proto index 80c59d50b0e3..9d2d8d72e00d 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric.proto +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric.proto @@ -1,4 +1,4 @@ -// Copyright 2016 Google Inc. +// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,6 +16,8 @@ syntax = "proto3"; package google.monitoring.v3; +import "google/api/annotations.proto"; +import "google/api/label.proto"; import "google/api/metric.proto"; import "google/api/monitored_resource.proto"; import "google/monitoring/v3/common.proto"; @@ -30,14 +32,14 @@ option php_namespace = "Google\\Cloud\\Monitoring\\V3"; // A single data point in a time series. message Point { - // The time interval to which the data point applies. For GAUGE metrics, only - // the end time of the interval is used. For DELTA metrics, the start and end - // time should specify a non-zero interval, with subsequent points specifying - // contiguous and non-overlapping intervals. For CUMULATIVE metrics, the - // start and end time should specify a non-zero interval, with subsequent - // points specifying the same start time and increasing end times, until an - // event resets the cumulative value to zero and sets a new start time for the - // following points. + // The time interval to which the data point applies. For `GAUGE` metrics, + // only the end time of the interval is used. For `DELTA` metrics, the start + // and end time should specify a non-zero interval, with subsequent points + // specifying contiguous and non-overlapping intervals. For `CUMULATIVE` + // metrics, the start and end time should specify a non-zero interval, with + // subsequent points specifying the same start time and increasing end times, + // until an event resets the cumulative value to zero and sets a new start + // time for the following points. TimeInterval interval = 1; // The value of the data point. @@ -53,10 +55,15 @@ message TimeSeries { // series. google.api.Metric metric = 1; - // The associated resource. A fully-specified monitored resource used to - // identify the time series. + // The associated monitored resource. Custom metrics can use only certain + // monitored resource types in their time series data. google.api.MonitoredResource resource = 2; + // Output only. The associated monitored resource metadata. When reading a + // a timeseries, this field will include metadata labels that are explicitly + // named in the reduction. When creating a timeseries, this field is ignored. + google.api.MonitoredResourceMetadata metadata = 7; + // The metric kind of the time series. When listing time series, this metric // kind might be different from the metric kind of the associated metric if // this time series is an alignment or reduction of other time series. @@ -76,8 +83,8 @@ message TimeSeries { // the same as the type of the data in the `points` field. google.api.MetricDescriptor.ValueType value_type = 4; - // The data points of this time series. When listing time series, the order of - // the points is specified by the list method. + // The data points of this time series. When listing time series, points are + // returned in reverse time order. // // When creating a time series, this field must contain exactly one point and // the point's type must be the same as the value type of the associated diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric_service.proto b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric_service.proto index de11cbde96f8..170c4eae2a96 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric_service.proto +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric_service.proto @@ -1,4 +1,4 @@ -// Copyright 2016 Google Inc. +// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import "google/api/metric.proto"; import "google/api/monitored_resource.proto"; import "google/monitoring/v3/common.proto"; import "google/monitoring/v3/metric.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/rpc/status.proto"; @@ -37,40 +38,55 @@ option php_namespace = "Google\\Cloud\\Monitoring\\V3"; service MetricService { // Lists monitored resource descriptors that match a filter. This method does not require a Stackdriver account. rpc ListMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest) returns (ListMonitoredResourceDescriptorsResponse) { - option (google.api.http) = { get: "/v3/{name=projects/*}/monitoredResourceDescriptors" }; + option (google.api.http) = { + get: "/v3/{name=projects/*}/monitoredResourceDescriptors" + }; } // Gets a single monitored resource descriptor. This method does not require a Stackdriver account. rpc GetMonitoredResourceDescriptor(GetMonitoredResourceDescriptorRequest) returns (google.api.MonitoredResourceDescriptor) { - option (google.api.http) = { get: "/v3/{name=projects/*/monitoredResourceDescriptors/*}" }; + option (google.api.http) = { + get: "/v3/{name=projects/*/monitoredResourceDescriptors/*}" + }; } // Lists metric descriptors that match a filter. This method does not require a Stackdriver account. rpc ListMetricDescriptors(ListMetricDescriptorsRequest) returns (ListMetricDescriptorsResponse) { - option (google.api.http) = { get: "/v3/{name=projects/*}/metricDescriptors" }; + option (google.api.http) = { + get: "/v3/{name=projects/*}/metricDescriptors" + }; } // Gets a single metric descriptor. This method does not require a Stackdriver account. rpc GetMetricDescriptor(GetMetricDescriptorRequest) returns (google.api.MetricDescriptor) { - option (google.api.http) = { get: "/v3/{name=projects/*/metricDescriptors/**}" }; + option (google.api.http) = { + get: "/v3/{name=projects/*/metricDescriptors/**}" + }; } // Creates a new metric descriptor. // User-created metric descriptors define // [custom metrics](/monitoring/custom-metrics). rpc CreateMetricDescriptor(CreateMetricDescriptorRequest) returns (google.api.MetricDescriptor) { - option (google.api.http) = { post: "/v3/{name=projects/*}/metricDescriptors" body: "metric_descriptor" }; + option (google.api.http) = { + post: "/v3/{name=projects/*}/metricDescriptors" + body: "metric_descriptor" + }; } // Deletes a metric descriptor. Only user-created // [custom metrics](/monitoring/custom-metrics) can be deleted. rpc DeleteMetricDescriptor(DeleteMetricDescriptorRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { delete: "/v3/{name=projects/*/metricDescriptors/**}" }; + option (google.api.http) = { + delete: "/v3/{name=projects/*/metricDescriptors/**}" + }; } // Lists time series that match a filter. This method does not require a Stackdriver account. rpc ListTimeSeries(ListTimeSeriesRequest) returns (ListTimeSeriesResponse) { - option (google.api.http) = { get: "/v3/{name=projects/*}/timeSeries" }; + option (google.api.http) = { + get: "/v3/{name=projects/*}/timeSeries" + }; } // Creates or adds data to one or more time series. @@ -78,7 +94,10 @@ service MetricService { // If any time series could not be written, a corresponding failure message is // included in the error response. rpc CreateTimeSeries(CreateTimeSeriesRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { post: "/v3/{name=projects/*}/timeSeries" body: "*" }; + option (google.api.http) = { + post: "/v3/{name=projects/*}/timeSeries" + body: "*" + }; } } @@ -106,7 +125,7 @@ message ListMonitoredResourceDescriptorsRequest { string page_token = 4; } -// The `ListMonitoredResourcDescriptors` response. +// The `ListMonitoredResourceDescriptors` response. message ListMonitoredResourceDescriptorsResponse { // The monitored resource descriptors that are available to this project // and that match `filter`, if present. @@ -217,6 +236,7 @@ message ListTimeSeriesRequest { // // metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND // metric.label.instance_name = "my-instance-name" + // string filter = 2; // The time interval for which results should be returned. Only time series @@ -229,18 +249,18 @@ message ListTimeSeriesRequest { // views of the data. Aggregation aggregation = 5; - // Specifies the order in which the points of the time series should - // be returned. By default, results are not ordered. Currently, - // this field must be left blank. + // Unsupported: must be left blank. The points in each time series are + // returned in reverse time order. string order_by = 6; // Specifies which information is returned about the time series. TimeSeriesView view = 7; - // A positive number that is the maximum number of results to return. - // When `view` field sets to `FULL`, it limits the number of `Points` server - // will return; if `view` field is `HEADERS`, it limits the number of - // `TimeSeries` server will return. + // A positive number that is the maximum number of results to return. If + // `page_size` is empty or more than 100,000 results, the effective + // `page_size` is 100,000 results. If `view` is set to `FULL`, this is the + // maximum number of `Points` returned. If `view` is set to `HEADERS`, this is + // the maximum number of `TimeSeries` returned. int32 page_size = 8; // If this field is not empty then it must contain the `nextPageToken` value @@ -258,6 +278,10 @@ message ListTimeSeriesResponse { // to a non-empty value. To see the additional results, // use that value as `pageToken` in the next call to this method. string next_page_token = 2; + + // Query execution errors that may have caused the time series data returned + // to be incomplete. + repeated google.rpc.Status execution_errors = 3; } // The `CreateTimeSeries` request. diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/mutation_record.proto b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/mutation_record.proto index a3ba28a1d150..3c979a179813 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/mutation_record.proto +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/mutation_record.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google Inc. +// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification.proto b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification.proto index 8cbca33f2468..ed6a56f78869 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification.proto +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google Inc. +// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -60,7 +60,7 @@ message NotificationChannelDescriptor { // The tiers that support this notification channel; the project service tier // must be one of the supported_tiers. - repeated ServiceTier supported_tiers = 5; + repeated ServiceTier supported_tiers = 5 [deprecated = true]; } // A `NotificationChannel` is a medium through which an alert is diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification_service.proto b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification_service.proto index aa5d294bef5b..745e3984ce39 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification_service.proto +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/notification_service.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google Inc. +// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/span_context.proto b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/span_context.proto new file mode 100644 index 000000000000..c099bbb618e1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/span_context.proto @@ -0,0 +1,43 @@ +// Copyright 2018 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.monitoring.v3; + +option csharp_namespace = "Google.Cloud.Monitoring.V3"; +option go_package = "google.golang.org/genproto/googleapis/monitoring/v3;monitoring"; +option java_multiple_files = true; +option java_outer_classname = "SpanContextProto"; +option java_package = "com.google.monitoring.v3"; +option php_namespace = "Google\\Cloud\\Monitoring\\V3"; + + +// The context of a span, attached to google.api.Distribution.Exemplars +// in google.api.Distribution values during aggregation. +// +// It contains the name of a span with format: +// projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID] +message SpanContext { + // 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; + // 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 + // is a 16-character hexadecimal encoding of an 8-byte array. + string span_name = 1; +} diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime.proto b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime.proto index 24dd1d73d642..4c280e9b8d88 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime.proto +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime.proto @@ -1,4 +1,4 @@ -// Copyright 2017 Google Inc. +// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -27,6 +27,26 @@ option java_package = "com.google.monitoring.v3"; option php_namespace = "Google\\Cloud\\Monitoring\\V3"; +// Nimbus InternalCheckers. +message InternalChecker { + // The GCP project ID. Not necessarily the same as the project_id for the + // config. + string project_id = 1; + + // The internal network to perform this uptime check on. + string network = 2; + + // The GCP zone the uptime check should egress from. Only respected for + // internal uptime checks, where internal_network is specified. + string gcp_zone = 3; + + // The checker ID. + string checker_id = 4; + + // The checker's human-readable name. + string display_name = 5; +} + // This message configures which resources and services to monitor for // availability. message UptimeCheckConfig { @@ -86,6 +106,7 @@ message UptimeCheckConfig { // https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). // Entering two separate headers with the same key in a Create call will // cause the first to be overwritten by the second. + // The maximum number of headers allowed is 100. map headers = 6; } @@ -101,29 +122,10 @@ message UptimeCheckConfig { // content. In the future, it can be expanded to allow for regular expressions // and more complex matching. message ContentMatcher { - // String content to match + // String content to match (max 1024 bytes) string content = 1; } - // Nimbus InternalCheckers. - message InternalChecker { - // The GCP project ID. Not necessarily the same as the project_id for the config. - string project_id = 1; - - // The internal network to perform this uptime check on. - string network = 2; - - // The GCP zone the uptime check should egress from. Only respected for - // internal uptime checks, where internal_network is specified. - string gcp_zone = 3; - - // The checker ID. - string checker_id = 4; - - // The checker's human-readable name. - string display_name = 5; - } - // A unique resource name for this UptimeCheckConfig. The format is: // // @@ -141,7 +143,15 @@ message UptimeCheckConfig { // The resource the check is checking. Required. oneof resource { - // The monitored resource associated with the configuration. + // The [monitored + // resource](https://cloud.google.com/monitoring/api/resources) associated + // with the configuration. + // The following monitored resource types are supported for uptime checks: + // uptime_url + // gce_instance + // gae_app + // aws_ec2_instance + // aws_elb_load_balancer google.api.MonitoredResource monitored_resource = 3; // The group resource associated with the configuration. @@ -157,8 +167,10 @@ message UptimeCheckConfig { TcpCheck tcp_check = 6; } - // How often the uptime check is performed. - // Currently, only 1, 5, 10, and 15 minutes are supported. Required. + // How often, in seconds, the uptime check is performed. + // Currently, the only supported values are `60s` (1 minute), `300s` + // (5 minutes), `600s` (10 minutes), and `900s` (15 minutes). Optional, + // defaults to `300s`. google.protobuf.Duration period = 7; // The maximum amount of time to wait for the request to complete (must be @@ -179,7 +191,12 @@ message UptimeCheckConfig { // regions. repeated UptimeCheckRegion selected_regions = 10; - // The internal checkers that this check will egress from. + // Denotes whether this is a check that egresses from InternalCheckers. + bool is_internal = 15; + + // The internal checkers that this check will egress from. If `is_internal` is + // true and this list is empty, the check will egress from all + // InternalCheckers configured for the project that owns this CheckConfig. repeated InternalChecker internal_checkers = 14; } @@ -224,15 +241,18 @@ enum UptimeCheckRegion { } // The supported resource types that can be used as values of -// group_resource.resource_type. gae_app and uptime_url are not allowed -// because group checks on App Engine modules and URLs are not allowed. +// `group_resource.resource_type`. +// `INSTANCE` includes `gce_instance` and `aws_ec2_instance` resource types. +// The resource types `gae_app` and `uptime_url` are not valid here because +// group checks on App Engine modules and URLs are not allowed. enum GroupResourceType { // Default value (not valid). RESOURCE_TYPE_UNSPECIFIED = 0; - // A group of instances (could be either GCE or AWS_EC2). + // A group of instances from Google Cloud Platform (GCP) or + // Amazon Web Services (AWS). INSTANCE = 1; - // A group of AWS load balancers. + // A group of Amazon ELB load balancers. AWS_ELB_LOAD_BALANCER = 2; } diff --git a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime_service.proto b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime_service.proto index c3e04133fb2f..3293edaef15f 100644 --- a/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime_service.proto +++ b/google-api-grpc/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/uptime_service.proto @@ -1,4 +1,4 @@ -// Copyright 2017 Google Inc. +// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -41,17 +41,24 @@ service UptimeCheckService { // Lists the existing valid uptime check configurations for the project, // leaving out any invalid configurations. rpc ListUptimeCheckConfigs(ListUptimeCheckConfigsRequest) returns (ListUptimeCheckConfigsResponse) { - option (google.api.http) = { get: "/v3/{parent=projects/*}/uptimeCheckConfigs" }; + option (google.api.http) = { + get: "/v3/{parent=projects/*}/uptimeCheckConfigs" + }; } // Gets a single uptime check configuration. rpc GetUptimeCheckConfig(GetUptimeCheckConfigRequest) returns (UptimeCheckConfig) { - option (google.api.http) = { get: "/v3/{name=projects/*/uptimeCheckConfigs/*}" }; + option (google.api.http) = { + get: "/v3/{name=projects/*/uptimeCheckConfigs/*}" + }; } // Creates a new uptime check configuration. rpc CreateUptimeCheckConfig(CreateUptimeCheckConfigRequest) returns (UptimeCheckConfig) { - option (google.api.http) = { post: "/v3/{parent=projects/*}/uptimeCheckConfigs" body: "uptime_check_config" }; + option (google.api.http) = { + post: "/v3/{parent=projects/*}/uptimeCheckConfigs" + body: "uptime_check_config" + }; } // Updates an uptime check configuration. You can either replace the entire @@ -59,27 +66,33 @@ service UptimeCheckService { // configuration by specifying the fields to be updated via `"updateMask"`. // Returns the updated configuration. rpc UpdateUptimeCheckConfig(UpdateUptimeCheckConfigRequest) returns (UptimeCheckConfig) { - option (google.api.http) = { patch: "/v3/{uptime_check_config.name=projects/*/uptimeCheckConfigs/*}" body: "uptime_check_config" }; + option (google.api.http) = { + patch: "/v3/{uptime_check_config.name=projects/*/uptimeCheckConfigs/*}" + body: "uptime_check_config" + }; } // Deletes an uptime check configuration. Note that this method will fail // if the uptime check configuration is referenced by an alert policy or // other dependent configs that would be rendered invalid by the deletion. rpc DeleteUptimeCheckConfig(DeleteUptimeCheckConfigRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { delete: "/v3/{name=projects/*/uptimeCheckConfigs/*}" }; + option (google.api.http) = { + delete: "/v3/{name=projects/*/uptimeCheckConfigs/*}" + }; } // Returns the list of IPs that checkers run from rpc ListUptimeCheckIps(ListUptimeCheckIpsRequest) returns (ListUptimeCheckIpsResponse) { - option (google.api.http) = { get: "/v3/uptimeCheckIps" }; + option (google.api.http) = { + get: "/v3/uptimeCheckIps" + }; } } // The protocol for the `ListUptimeCheckConfigs` request. message ListUptimeCheckConfigsRequest { - // The project whose uptime check configurations are listed. The format is - // - // `projects/[PROJECT_ID]`. + // The project whose uptime check configurations are listed. The format + // is `projects/[PROJECT_ID]`. string parent = 1; // The maximum number of results to return in a single response. The server @@ -105,21 +118,23 @@ message ListUptimeCheckConfigsResponse { // next_page_token is passed to the subsequent List method call (in the // request message's page_token field). string next_page_token = 2; + + // The total number of uptime check configurations for the project, + // irrespective of any pagination. + int32 total_size = 3; } // The protocol for the `GetUptimeCheckConfig` request. message GetUptimeCheckConfigRequest { - // The uptime check configuration to retrieve. The format is - // - // `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`. + // The uptime check configuration to retrieve. The format + // is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`. string name = 1; } // The protocol for the `CreateUptimeCheckConfig` request. message CreateUptimeCheckConfigRequest { - // The project in which to create the uptime check. The format is: - // - // `projects/[PROJECT_ID]`. + // The project in which to create the uptime check. The format + // is `projects/[PROJECT_ID]`. string parent = 1; // The new uptime check configuration. @@ -137,18 +152,21 @@ message UpdateUptimeCheckConfigRequest { // Required. If an `"updateMask"` has been specified, this field gives // the values for the set of fields mentioned in the `"updateMask"`. If an // `"updateMask"` has not been given, this uptime check configuration replaces - // the current configuration. If a field is mentioned in `"updateMask`" but + // the current configuration. If a field is mentioned in `"updateMask"` but // the corresonding field is omitted in this partial uptime check // configuration, it has the effect of deleting/clearing the field from the // configuration on the server. + // + // The following fields can be updated: `display_name`, + // `http_check`, `tcp_check`, `timeout`, `content_matchers`, and + // `selected_regions`. UptimeCheckConfig uptime_check_config = 3; } // The protocol for the `DeleteUptimeCheckConfig` request. message DeleteUptimeCheckConfigRequest { - // The uptime check configuration to delete. The format is - // - // `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`. + // The uptime check configuration to delete. The format + // is `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`. string name = 1; } diff --git a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java b/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java index cce6624716a1..9289801b5444 100644 --- a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java +++ b/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java @@ -258,6 +258,17 @@ public static class Builder extends StubSettings.Builder */ @Generated("by gapic-generator") -@BetaApi public class AlertPolicyServiceClient implements BackgroundResource { private final AlertPolicyServiceSettings settings; private final AlertPolicyServiceStub stub; diff --git a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java index 9420897d9cce..f58080deebfe 100644 --- a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java +++ b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java @@ -68,7 +68,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class AlertPolicyServiceSettings extends ClientSettings { /** Returns the object with the settings used for calls to listAlertPolicies. */ public PagedCallSettings< diff --git a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java index 8ed99c0a88d0..17375a6c3886 100644 --- a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java +++ b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java @@ -48,7 +48,7 @@ // AUTO-GENERATED DOCUMENTATION AND SERVICE /** * Service Description: The Group API lets you inspect and manage your - * [groups](google.monitoring.v3.Group). + * [groups](#google.monitoring.v3.Group). * *

A group is a named filter that is used to identify a collection of monitored resources. Groups * are typically used to mirror the physical and/or logical topology of the environment. Because @@ -120,7 +120,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class GroupServiceClient implements BackgroundResource { private final GroupServiceSettings settings; private final GroupServiceStub stub; diff --git a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java index 4920370bf06f..58d9debfa9b6 100644 --- a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java +++ b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java @@ -71,7 +71,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class GroupServiceSettings extends ClientSettings { /** Returns the object with the settings used for calls to listGroups. */ public PagedCallSettings diff --git a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java index d005669b8d70..c87afc40fac8 100644 --- a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java +++ b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java @@ -120,7 +120,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class MetricServiceClient implements BackgroundResource { private final MetricServiceSettings settings; private final MetricServiceStub stub; diff --git a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java index 210627b91df2..641b62af91c4 100644 --- a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java +++ b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java @@ -76,7 +76,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class MetricServiceSettings extends ClientSettings { /** Returns the object with the settings used for calls to listMonitoredResourceDescriptors. */ public PagedCallSettings< diff --git a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java index b169674599f0..e880c059746b 100644 --- a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java +++ b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java @@ -117,7 +117,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class NotificationChannelServiceClient implements BackgroundResource { private final NotificationChannelServiceSettings settings; private final NotificationChannelServiceStub stub; diff --git a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java index f8006db0de7e..53ea9e83e266 100644 --- a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java +++ b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java @@ -73,7 +73,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class NotificationChannelServiceSettings extends ClientSettings { /** Returns the object with the settings used for calls to listNotificationChannelDescriptors. */ diff --git a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java index 219240cb42ee..582e251cc67d 100644 --- a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java +++ b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java @@ -116,7 +116,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class UptimeCheckServiceClient implements BackgroundResource { private final UptimeCheckServiceSettings settings; private final UptimeCheckServiceStub stub; @@ -186,7 +185,7 @@ public UptimeCheckServiceStub getStub() { * * * @param parent The project whose uptime check configurations are listed. The format is - *

`projects/[PROJECT_ID]`. + * `projects/[PROJECT_ID]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(String parent) { @@ -295,7 +294,7 @@ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs( * * * @param name The uptime check configuration to retrieve. The format is - *

`projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`. + * `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final UptimeCheckConfig getUptimeCheckConfig(String name) { @@ -365,8 +364,8 @@ private final UptimeCheckConfig getUptimeCheckConfig(GetUptimeCheckConfigRequest * } * * - * @param parent The project in which to create the uptime check. The format is: - *

`projects/[PROJECT_ID]`. + * @param parent The project in which to create the uptime check. The format is + * `projects/[PROJECT_ID]`. * @param uptimeCheckConfig The new uptime check configuration. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -449,9 +448,11 @@ public final UptimeCheckConfig createUptimeCheckConfig(CreateUptimeCheckConfigRe * @param uptimeCheckConfig Required. If an `"updateMask"` has been specified, this field gives * the values for the set of fields mentioned in the `"updateMask"`. If an `"updateMask"` has * not been given, this uptime check configuration replaces the current configuration. If a - * field is mentioned in `"updateMask`" but the corresonding field is omitted in this partial + * field is mentioned in `"updateMask"` but the corresonding field is omitted in this partial * uptime check configuration, it has the effect of deleting/clearing the field from the * configuration on the server. + *

The following fields can be updated: `display_name`, `http_check`, `tcp_check`, + * `timeout`, `content_matchers`, and `selected_regions`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final UptimeCheckConfig updateUptimeCheckConfig(UptimeCheckConfig uptimeCheckConfig) { @@ -527,7 +528,7 @@ public final UptimeCheckConfig updateUptimeCheckConfig(UpdateUptimeCheckConfigRe * * * @param name The uptime check configuration to delete. The format is - *

`projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`. + * `projects/[PROJECT_ID]/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-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java index 37f8f96980ec..f0d657be7e28 100644 --- a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java +++ b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceSettings.java @@ -71,7 +71,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class UptimeCheckServiceSettings extends ClientSettings { /** Returns the object with the settings used for calls to listUptimeCheckConfigs. */ public PagedCallSettings< diff --git a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java index f7c6a40c661a..136562d3b7e5 100644 --- a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java +++ b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/package-info.java @@ -42,7 +42,7 @@ * ================== GroupServiceClient ================== * *

Service Description: The Group API lets you inspect and manage your - * [groups](google.monitoring.v3.Group). + * [groups](#google.monitoring.v3.Group). * *

A group is a named filter that is used to identify a collection of monitored resources. Groups * are typically used to mirror the physical and/or logical topology of the environment. Because diff --git a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java index da78a76f92e8..28f40342afa0 100644 --- a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java +++ b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/AlertPolicyServiceStubSettings.java @@ -83,7 +83,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class AlertPolicyServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = diff --git a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java index 0e075ae73aad..dafa9cf5b9c0 100644 --- a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java +++ b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/GroupServiceStubSettings.java @@ -87,7 +87,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class GroupServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = diff --git a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java index d3e7ed4c080f..25c10dd0c6a3 100644 --- a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java +++ b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/MetricServiceStubSettings.java @@ -92,7 +92,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class MetricServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = diff --git a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java index 8dc1de74c13f..914373e0e70c 100644 --- a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java +++ b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/NotificationChannelServiceStubSettings.java @@ -88,7 +88,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class NotificationChannelServiceStubSettings extends StubSettings { /** The default scopes of the service. */ diff --git a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java index a320239f70ca..bb62faf6f768 100644 --- a/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java +++ b/google-cloud-clients/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/UptimeCheckServiceStubSettings.java @@ -87,7 +87,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class UptimeCheckServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = diff --git a/google-cloud-clients/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClientTest.java b/google-cloud-clients/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClientTest.java index 8a0119952412..006fac06ea70 100644 --- a/google-cloud-clients/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClientTest.java +++ b/google-cloud-clients/google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClientTest.java @@ -104,11 +104,13 @@ public void tearDown() throws Exception { @SuppressWarnings("all") public void listUptimeCheckConfigsTest() { String nextPageToken = ""; + int totalSize = 705419236; UptimeCheckConfig uptimeCheckConfigsElement = UptimeCheckConfig.newBuilder().build(); List uptimeCheckConfigs = Arrays.asList(uptimeCheckConfigsElement); ListUptimeCheckConfigsResponse expectedResponse = ListUptimeCheckConfigsResponse.newBuilder() .setNextPageToken(nextPageToken) + .setTotalSize(totalSize) .addAllUptimeCheckConfigs(uptimeCheckConfigs) .build(); mockUptimeCheckService.addResponse(expectedResponse); @@ -155,8 +157,13 @@ public void listUptimeCheckConfigsExceptionTest() throws Exception { public void getUptimeCheckConfigTest() { String name2 = "name2-1052831874"; String displayName = "displayName1615086568"; + boolean isInternal = true; UptimeCheckConfig expectedResponse = - UptimeCheckConfig.newBuilder().setName(name2).setDisplayName(displayName).build(); + UptimeCheckConfig.newBuilder() + .setName(name2) + .setDisplayName(displayName) + .setIsInternal(isInternal) + .build(); mockUptimeCheckService.addResponse(expectedResponse); String formattedName = UptimeCheckConfigName.format("[PROJECT]", "[UPTIME_CHECK_CONFIG]"); @@ -196,8 +203,13 @@ public void getUptimeCheckConfigExceptionTest() throws Exception { public void createUptimeCheckConfigTest() { String name = "name3373707"; String displayName = "displayName1615086568"; + boolean isInternal = true; UptimeCheckConfig expectedResponse = - UptimeCheckConfig.newBuilder().setName(name).setDisplayName(displayName).build(); + UptimeCheckConfig.newBuilder() + .setName(name) + .setDisplayName(displayName) + .setIsInternal(isInternal) + .build(); mockUptimeCheckService.addResponse(expectedResponse); String formattedParent = ProjectName.format("[PROJECT]"); @@ -242,8 +254,13 @@ public void createUptimeCheckConfigExceptionTest() throws Exception { public void updateUptimeCheckConfigTest() { String name = "name3373707"; String displayName = "displayName1615086568"; + boolean isInternal = true; UptimeCheckConfig expectedResponse = - UptimeCheckConfig.newBuilder().setName(name).setDisplayName(displayName).build(); + UptimeCheckConfig.newBuilder() + .setName(name) + .setDisplayName(displayName) + .setIsInternal(isInternal) + .build(); mockUptimeCheckService.addResponse(expectedResponse); UptimeCheckConfig uptimeCheckConfig = UptimeCheckConfig.newBuilder().build(); diff --git a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index ebf86902606b..6657e5f80d41 100644 --- a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -140,7 +140,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class SubscriptionAdminClient implements BackgroundResource { private final SubscriptionAdminSettings settings; private final SubscriberStub stub; diff --git a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index a8f4cdbbb90a..b5e212783e7b 100644 --- a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -89,7 +89,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class SubscriptionAdminSettings extends ClientSettings { /** Returns the object with the settings used for calls to createSubscription. */ public UnaryCallSettings createSubscriptionSettings() { diff --git a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index f56f59ab8ec3..66b45a50d291 100644 --- a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -124,7 +124,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class TopicAdminClient implements BackgroundResource { private final TopicAdminSettings settings; private final PublisherStub stub; diff --git a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index f61ae5c6bec4..31edd6c2a2d9 100644 --- a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -78,7 +78,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class TopicAdminSettings extends ClientSettings { /** Returns the object with the settings used for calls to createTopic. */ public UnaryCallSettings createTopicSettings() { diff --git a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 8f4a8a12c982..28fc83d29f3d 100644 --- a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -102,7 +102,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class PublisherStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = diff --git a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 1f57c41acdbe..3819052d18c8 100644 --- a/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -104,7 +104,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class SubscriberStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = diff --git a/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java b/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java index eab5ea4eda09..9c46df149c52 100644 --- a/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java +++ b/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorClient.java @@ -98,6 +98,7 @@ * */ @Generated("by gapic-generator") +@BetaApi public class ImageAnnotatorClient implements BackgroundResource { private final ImageAnnotatorSettings settings; private final ImageAnnotatorStub stub; diff --git a/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java b/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java index 166c63373f8e..6466f83fc3a3 100644 --- a/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java +++ b/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/ImageAnnotatorSettings.java @@ -59,6 +59,7 @@ * */ @Generated("by gapic-generator") +@BetaApi public class ImageAnnotatorSettings extends ClientSettings { /** Returns the object with the settings used for calls to batchAnnotateImages. */ public UnaryCallSettings diff --git a/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java b/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java index 7bac636cb0a4..c0f76053a59b 100644 --- a/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java +++ b/google-cloud-clients/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/ImageAnnotatorStubSettings.java @@ -76,6 +76,7 @@ * */ @Generated("by gapic-generator") +@BetaApi public class ImageAnnotatorStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES =