From aa90c6483e96dd09d688fc585d7744e7d62b9553 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 10 Nov 2021 20:56:40 +0000 Subject: [PATCH] chore: update Java and Python dependencies (#724) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 408420890 Source-Link: https://github.com/googleapis/googleapis/commit/2921f9fb3bfbd16f6b2da0104373e2b47a80a65e Source-Link: https://github.com/googleapis/googleapis-gen/commit/6598ca8cbbf5226733a099c4506518a5af6ff74c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjU5OGNhOGNiYmY1MjI2NzMzYTA5OWM0NTA2NTE4YTVhZjZmZjc0YyJ9 --- .../v3/AlertPolicyServiceClient.java | 26 ++------ .../monitoring/v3/GroupServiceClient.java | 14 ++-- .../monitoring/v3/MetricServiceClient.java | 64 +++++-------------- .../v3/NotificationChannelServiceClient.java | 55 ++++------------ .../v3/ServiceMonitoringServiceClient.java | 14 ++-- .../v3/UptimeCheckServiceClient.java | 33 ++-------- .../monitoring/v3/AlertPolicyServiceGrpc.java | 1 + .../monitoring/v3/GroupServiceGrpc.java | 1 + .../monitoring/v3/MetricServiceGrpc.java | 1 + .../v3/NotificationChannelServiceGrpc.java | 1 + .../monitoring/v3/QueryServiceGrpc.java | 1 + .../v3/ServiceMonitoringServiceGrpc.java | 1 + .../monitoring/v3/UptimeCheckServiceGrpc.java | 1 + 13 files changed, 61 insertions(+), 152 deletions(-) diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java index 4db2960b..97c84cbe 100644 --- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java +++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java @@ -272,8 +272,7 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(ProjectName name) * *
{@code
    * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) {
-   *   String name =
-   *       AlertPolicyName.ofProjectAlertPolicyName("[PROJECT]", "[ALERT_POLICY]").toString();
+   *   String name = ProjectName.of("[PROJECT]").toString();
    *   for (AlertPolicy element : alertPolicyServiceClient.listAlertPolicies(name).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -304,9 +303,7 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(String name) {
    * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) {
    *   ListAlertPoliciesRequest request =
    *       ListAlertPoliciesRequest.newBuilder()
-   *           .setName(
-   *               AlertPolicyName.ofProjectAlertPolicyName("[PROJECT]", "[ALERT_POLICY]")
-   *                   .toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setFilter("filter-1274492040")
    *           .setOrderBy("orderBy-1207110587")
    *           .setPageSize(883849137)
@@ -335,9 +332,7 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(ListAlertPoliciesR
    * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) {
    *   ListAlertPoliciesRequest request =
    *       ListAlertPoliciesRequest.newBuilder()
-   *           .setName(
-   *               AlertPolicyName.ofProjectAlertPolicyName("[PROJECT]", "[ALERT_POLICY]")
-   *                   .toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setFilter("filter-1274492040")
    *           .setOrderBy("orderBy-1207110587")
    *           .setPageSize(883849137)
@@ -367,9 +362,7 @@ public final ListAlertPoliciesPagedResponse listAlertPolicies(ListAlertPoliciesR
    * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) {
    *   ListAlertPoliciesRequest request =
    *       ListAlertPoliciesRequest.newBuilder()
-   *           .setName(
-   *               AlertPolicyName.ofProjectAlertPolicyName("[PROJECT]", "[ALERT_POLICY]")
-   *                   .toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setFilter("filter-1274492040")
    *           .setOrderBy("orderBy-1207110587")
    *           .setPageSize(883849137)
@@ -612,8 +605,7 @@ public final AlertPolicy createAlertPolicy(ProjectName name, AlertPolicy alertPo
    *
    * 
{@code
    * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) {
-   *   String name =
-   *       AlertPolicyName.ofProjectAlertPolicyName("[PROJECT]", "[ALERT_POLICY]").toString();
+   *   String name = ProjectName.of("[PROJECT]").toString();
    *   AlertPolicy alertPolicy = AlertPolicy.newBuilder().build();
    *   AlertPolicy response = alertPolicyServiceClient.createAlertPolicy(name, alertPolicy);
    * }
@@ -649,9 +641,7 @@ public final AlertPolicy createAlertPolicy(String name, AlertPolicy alertPolicy)
    * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) {
    *   CreateAlertPolicyRequest request =
    *       CreateAlertPolicyRequest.newBuilder()
-   *           .setName(
-   *               AlertPolicyName.ofProjectAlertPolicyName("[PROJECT]", "[ALERT_POLICY]")
-   *                   .toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setAlertPolicy(AlertPolicy.newBuilder().build())
    *           .build();
    *   AlertPolicy response = alertPolicyServiceClient.createAlertPolicy(request);
@@ -675,9 +665,7 @@ public final AlertPolicy createAlertPolicy(CreateAlertPolicyRequest request) {
    * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) {
    *   CreateAlertPolicyRequest request =
    *       CreateAlertPolicyRequest.newBuilder()
-   *           .setName(
-   *               AlertPolicyName.ofProjectAlertPolicyName("[PROJECT]", "[ALERT_POLICY]")
-   *                   .toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setAlertPolicy(AlertPolicy.newBuilder().build())
    *           .build();
    *   ApiFuture future =
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java
index 8549cbce..256f9c92 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java
@@ -254,7 +254,7 @@ public final ListGroupsPagedResponse listGroups(ProjectName name) {
    *
    * 
{@code
    * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) {
-   *   String name = GroupName.ofProjectGroupName("[PROJECT]", "[GROUP]").toString();
+   *   String name = ProjectName.of("[PROJECT]").toString();
    *   for (Group element : groupServiceClient.listGroups(name).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -281,7 +281,7 @@ public final ListGroupsPagedResponse listGroups(String name) {
    * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) {
    *   ListGroupsRequest request =
    *       ListGroupsRequest.newBuilder()
-   *           .setName(GroupName.ofProjectGroupName("[PROJECT]", "[GROUP]").toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -308,7 +308,7 @@ public final ListGroupsPagedResponse listGroups(ListGroupsRequest request) {
    * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) {
    *   ListGroupsRequest request =
    *       ListGroupsRequest.newBuilder()
-   *           .setName(GroupName.ofProjectGroupName("[PROJECT]", "[GROUP]").toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -334,7 +334,7 @@ public final UnaryCallable listGroup
    * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) {
    *   ListGroupsRequest request =
    *       ListGroupsRequest.newBuilder()
-   *           .setName(GroupName.ofProjectGroupName("[PROJECT]", "[GROUP]").toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -545,7 +545,7 @@ public final Group createGroup(ProjectName name, Group group) {
    *
    * 
{@code
    * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) {
-   *   String name = GroupName.ofProjectGroupName("[PROJECT]", "[GROUP]").toString();
+   *   String name = ProjectName.of("[PROJECT]").toString();
    *   Group group = Group.newBuilder().build();
    *   Group response = groupServiceClient.createGroup(name, group);
    * }
@@ -574,7 +574,7 @@ public final Group createGroup(String name, Group group) {
    * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) {
    *   CreateGroupRequest request =
    *       CreateGroupRequest.newBuilder()
-   *           .setName(GroupName.ofProjectGroupName("[PROJECT]", "[GROUP]").toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setGroup(Group.newBuilder().build())
    *           .setValidateOnly(true)
    *           .build();
@@ -599,7 +599,7 @@ public final Group createGroup(CreateGroupRequest request) {
    * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) {
    *   CreateGroupRequest request =
    *       CreateGroupRequest.newBuilder()
-   *           .setName(GroupName.ofProjectGroupName("[PROJECT]", "[GROUP]").toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setGroup(Group.newBuilder().build())
    *           .setValidateOnly(true)
    *           .build();
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java
index 90f56e9c..35dde089 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java
@@ -273,10 +273,7 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource
    *
    * 
{@code
    * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
-   *   String name =
-   *       MonitoredResourceDescriptorName.ofProjectMonitoredResourceDescriptorName(
-   *               "[PROJECT]", "[MONITORED_RESOURCE_DESCRIPTOR]")
-   *           .toString();
+   *   String name = ProjectName.of("[PROJECT]").toString();
    *   for (MonitoredResourceDescriptor element :
    *       metricServiceClient.listMonitoredResourceDescriptors(name).iterateAll()) {
    *     // doThingsWith(element);
@@ -307,10 +304,7 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource
    * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
    *   ListMonitoredResourceDescriptorsRequest request =
    *       ListMonitoredResourceDescriptorsRequest.newBuilder()
-   *           .setName(
-   *               MonitoredResourceDescriptorName.ofProjectMonitoredResourceDescriptorName(
-   *                       "[PROJECT]", "[MONITORED_RESOURCE_DESCRIPTOR]")
-   *                   .toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setFilter("filter-1274492040")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -341,10 +335,7 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource
    * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
    *   ListMonitoredResourceDescriptorsRequest request =
    *       ListMonitoredResourceDescriptorsRequest.newBuilder()
-   *           .setName(
-   *               MonitoredResourceDescriptorName.ofProjectMonitoredResourceDescriptorName(
-   *                       "[PROJECT]", "[MONITORED_RESOURCE_DESCRIPTOR]")
-   *                   .toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setFilter("filter-1274492040")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -375,10 +366,7 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource
    * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
    *   ListMonitoredResourceDescriptorsRequest request =
    *       ListMonitoredResourceDescriptorsRequest.newBuilder()
-   *           .setName(
-   *               MonitoredResourceDescriptorName.ofProjectMonitoredResourceDescriptorName(
-   *                       "[PROJECT]", "[MONITORED_RESOURCE_DESCRIPTOR]")
-   *                   .toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setFilter("filter-1274492040")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -613,9 +601,7 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors(ProjectNam
    *
    * 
{@code
    * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
-   *   String name =
-   *       MetricDescriptorName.ofProjectMetricDescriptorName("[PROJECT]", "[METRIC_DESCRIPTOR]")
-   *           .toString();
+   *   String name = ProjectName.of("[PROJECT]").toString();
    *   for (MetricDescriptor element :
    *       metricServiceClient.listMetricDescriptors(name).iterateAll()) {
    *     // doThingsWith(element);
@@ -644,10 +630,7 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors(String nam
    * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
    *   ListMetricDescriptorsRequest request =
    *       ListMetricDescriptorsRequest.newBuilder()
-   *           .setName(
-   *               MetricDescriptorName.ofProjectMetricDescriptorName(
-   *                       "[PROJECT]", "[METRIC_DESCRIPTOR]")
-   *                   .toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setFilter("filter-1274492040")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -677,10 +660,7 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors(
    * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
    *   ListMetricDescriptorsRequest request =
    *       ListMetricDescriptorsRequest.newBuilder()
-   *           .setName(
-   *               MetricDescriptorName.ofProjectMetricDescriptorName(
-   *                       "[PROJECT]", "[METRIC_DESCRIPTOR]")
-   *                   .toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setFilter("filter-1274492040")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -709,10 +689,7 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors(
    * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
    *   ListMetricDescriptorsRequest request =
    *       ListMetricDescriptorsRequest.newBuilder()
-   *           .setName(
-   *               MetricDescriptorName.ofProjectMetricDescriptorName(
-   *                       "[PROJECT]", "[METRIC_DESCRIPTOR]")
-   *                   .toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setFilter("filter-1274492040")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -955,9 +932,7 @@ public final MetricDescriptor createMetricDescriptor(
    *
    * 
{@code
    * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
-   *   String name =
-   *       MetricDescriptorName.ofProjectMetricDescriptorName("[PROJECT]", "[METRIC_DESCRIPTOR]")
-   *           .toString();
+   *   String name = ProjectName.of("[PROJECT]").toString();
    *   MetricDescriptor metricDescriptor = MetricDescriptor.newBuilder().build();
    *   MetricDescriptor response =
    *       metricServiceClient.createMetricDescriptor(name, metricDescriptor);
@@ -992,10 +967,7 @@ public final MetricDescriptor createMetricDescriptor(
    * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
    *   CreateMetricDescriptorRequest request =
    *       CreateMetricDescriptorRequest.newBuilder()
-   *           .setName(
-   *               MetricDescriptorName.ofProjectMetricDescriptorName(
-   *                       "[PROJECT]", "[METRIC_DESCRIPTOR]")
-   *                   .toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setMetricDescriptor(MetricDescriptor.newBuilder().build())
    *           .build();
    *   MetricDescriptor response = metricServiceClient.createMetricDescriptor(request);
@@ -1021,10 +993,7 @@ public final MetricDescriptor createMetricDescriptor(CreateMetricDescriptorReque
    * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
    *   CreateMetricDescriptorRequest request =
    *       CreateMetricDescriptorRequest.newBuilder()
-   *           .setName(
-   *               MetricDescriptorName.ofProjectMetricDescriptorName(
-   *                       "[PROJECT]", "[METRIC_DESCRIPTOR]")
-   *                   .toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setMetricDescriptor(MetricDescriptor.newBuilder().build())
    *           .build();
    *   ApiFuture future =
@@ -1301,7 +1270,7 @@ public final ListTimeSeriesPagedResponse listTimeSeries(
    *
    * 
{@code
    * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
-   *   String name = TimeSeriesName.ofProjectTimeSeriesName("[PROJECT]", "[TIME_SERIES]").toString();
+   *   String name = ProjectName.of("[PROJECT]").toString();
    *   String filter = "filter-1274492040";
    *   TimeInterval interval = TimeInterval.newBuilder().build();
    *   ListTimeSeriesRequest.TimeSeriesView view = ListTimeSeriesRequest.TimeSeriesView.forNumber(0);
@@ -1351,8 +1320,7 @@ public final ListTimeSeriesPagedResponse listTimeSeries(
    * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
    *   ListTimeSeriesRequest request =
    *       ListTimeSeriesRequest.newBuilder()
-   *           .setName(
-   *               TimeSeriesName.ofProjectTimeSeriesName("[PROJECT]", "[TIME_SERIES]").toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setFilter("filter-1274492040")
    *           .setInterval(TimeInterval.newBuilder().build())
    *           .setAggregation(Aggregation.newBuilder().build())
@@ -1384,8 +1352,7 @@ public final ListTimeSeriesPagedResponse listTimeSeries(ListTimeSeriesRequest re
    * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
    *   ListTimeSeriesRequest request =
    *       ListTimeSeriesRequest.newBuilder()
-   *           .setName(
-   *               TimeSeriesName.ofProjectTimeSeriesName("[PROJECT]", "[TIME_SERIES]").toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setFilter("filter-1274492040")
    *           .setInterval(TimeInterval.newBuilder().build())
    *           .setAggregation(Aggregation.newBuilder().build())
@@ -1418,8 +1385,7 @@ public final ListTimeSeriesPagedResponse listTimeSeries(ListTimeSeriesRequest re
    * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
    *   ListTimeSeriesRequest request =
    *       ListTimeSeriesRequest.newBuilder()
-   *           .setName(
-   *               TimeSeriesName.ofProjectTimeSeriesName("[PROJECT]", "[TIME_SERIES]").toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setFilter("filter-1274492040")
    *           .setInterval(TimeInterval.newBuilder().build())
    *           .setAggregation(Aggregation.newBuilder().build())
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java
index 231f2195..b5b7eae5 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java
@@ -299,10 +299,7 @@ public final ListNotificationChannelDescriptorsPagedResponse listNotificationCha
    * 
{@code
    * try (NotificationChannelServiceClient notificationChannelServiceClient =
    *     NotificationChannelServiceClient.create()) {
-   *   String name =
-   *       NotificationChannelDescriptorName.ofProjectChannelDescriptorName(
-   *               "[PROJECT]", "[CHANNEL_DESCRIPTOR]")
-   *           .toString();
+   *   String name = ProjectName.of("[PROJECT]").toString();
    *   for (NotificationChannelDescriptor element :
    *       notificationChannelServiceClient.listNotificationChannelDescriptors(name).iterateAll()) {
    *     // doThingsWith(element);
@@ -339,10 +336,7 @@ public final ListNotificationChannelDescriptorsPagedResponse listNotificationCha
    *     NotificationChannelServiceClient.create()) {
    *   ListNotificationChannelDescriptorsRequest request =
    *       ListNotificationChannelDescriptorsRequest.newBuilder()
-   *           .setName(
-   *               NotificationChannelDescriptorName.ofProjectChannelDescriptorName(
-   *                       "[PROJECT]", "[CHANNEL_DESCRIPTOR]")
-   *                   .toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -375,10 +369,7 @@ public final ListNotificationChannelDescriptorsPagedResponse listNotificationCha
    *     NotificationChannelServiceClient.create()) {
    *   ListNotificationChannelDescriptorsRequest request =
    *       ListNotificationChannelDescriptorsRequest.newBuilder()
-   *           .setName(
-   *               NotificationChannelDescriptorName.ofProjectChannelDescriptorName(
-   *                       "[PROJECT]", "[CHANNEL_DESCRIPTOR]")
-   *                   .toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -412,10 +403,7 @@ public final ListNotificationChannelDescriptorsPagedResponse listNotificationCha
    *     NotificationChannelServiceClient.create()) {
    *   ListNotificationChannelDescriptorsRequest request =
    *       ListNotificationChannelDescriptorsRequest.newBuilder()
-   *           .setName(
-   *               NotificationChannelDescriptorName.ofProjectChannelDescriptorName(
-   *                       "[PROJECT]", "[CHANNEL_DESCRIPTOR]")
-   *                   .toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -676,10 +664,7 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(Proj
    * 
{@code
    * try (NotificationChannelServiceClient notificationChannelServiceClient =
    *     NotificationChannelServiceClient.create()) {
-   *   String name =
-   *       NotificationChannelName.ofProjectNotificationChannelName(
-   *               "[PROJECT]", "[NOTIFICATION_CHANNEL]")
-   *           .toString();
+   *   String name = ProjectName.of("[PROJECT]").toString();
    *   for (NotificationChannel element :
    *       notificationChannelServiceClient.listNotificationChannels(name).iterateAll()) {
    *     // doThingsWith(element);
@@ -713,10 +698,7 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(Stri
    *     NotificationChannelServiceClient.create()) {
    *   ListNotificationChannelsRequest request =
    *       ListNotificationChannelsRequest.newBuilder()
-   *           .setName(
-   *               NotificationChannelName.ofProjectNotificationChannelName(
-   *                       "[PROJECT]", "[NOTIFICATION_CHANNEL]")
-   *                   .toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setFilter("filter-1274492040")
    *           .setOrderBy("orderBy-1207110587")
    *           .setPageSize(883849137)
@@ -748,10 +730,7 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(
    *     NotificationChannelServiceClient.create()) {
    *   ListNotificationChannelsRequest request =
    *       ListNotificationChannelsRequest.newBuilder()
-   *           .setName(
-   *               NotificationChannelName.ofProjectNotificationChannelName(
-   *                       "[PROJECT]", "[NOTIFICATION_CHANNEL]")
-   *                   .toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setFilter("filter-1274492040")
    *           .setOrderBy("orderBy-1207110587")
    *           .setPageSize(883849137)
@@ -784,10 +763,7 @@ public final ListNotificationChannelsPagedResponse listNotificationChannels(
    *     NotificationChannelServiceClient.create()) {
    *   ListNotificationChannelsRequest request =
    *       ListNotificationChannelsRequest.newBuilder()
-   *           .setName(
-   *               NotificationChannelName.ofProjectNotificationChannelName(
-   *                       "[PROJECT]", "[NOTIFICATION_CHANNEL]")
-   *                   .toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setFilter("filter-1274492040")
    *           .setOrderBy("orderBy-1207110587")
    *           .setPageSize(883849137)
@@ -1058,10 +1034,7 @@ public final NotificationChannel createNotificationChannel(
    * 
{@code
    * try (NotificationChannelServiceClient notificationChannelServiceClient =
    *     NotificationChannelServiceClient.create()) {
-   *   String name =
-   *       NotificationChannelName.ofProjectNotificationChannelName(
-   *               "[PROJECT]", "[NOTIFICATION_CHANNEL]")
-   *           .toString();
+   *   String name = ProjectName.of("[PROJECT]").toString();
    *   NotificationChannel notificationChannel = NotificationChannel.newBuilder().build();
    *   NotificationChannel response =
    *       notificationChannelServiceClient.createNotificationChannel(name, notificationChannel);
@@ -1100,10 +1073,7 @@ public final NotificationChannel createNotificationChannel(
    *     NotificationChannelServiceClient.create()) {
    *   CreateNotificationChannelRequest request =
    *       CreateNotificationChannelRequest.newBuilder()
-   *           .setName(
-   *               NotificationChannelName.ofProjectNotificationChannelName(
-   *                       "[PROJECT]", "[NOTIFICATION_CHANNEL]")
-   *                   .toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setNotificationChannel(NotificationChannel.newBuilder().build())
    *           .build();
    *   NotificationChannel response =
@@ -1131,10 +1101,7 @@ public final NotificationChannel createNotificationChannel(
    *     NotificationChannelServiceClient.create()) {
    *   CreateNotificationChannelRequest request =
    *       CreateNotificationChannelRequest.newBuilder()
-   *           .setName(
-   *               NotificationChannelName.ofProjectNotificationChannelName(
-   *                       "[PROJECT]", "[NOTIFICATION_CHANNEL]")
-   *                   .toString())
+   *           .setName(ProjectName.of("[PROJECT]").toString())
    *           .setNotificationChannel(NotificationChannel.newBuilder().build())
    *           .build();
    *   ApiFuture future =
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java
index 2a7e6bf6..c2c83e10 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/ServiceMonitoringServiceClient.java
@@ -277,7 +277,7 @@ public final Service createService(ProjectName parent, Service service) {
    * 
{@code
    * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient =
    *     ServiceMonitoringServiceClient.create()) {
-   *   String parent = ServiceName.ofProjectServiceName("[PROJECT]", "[SERVICE]").toString();
+   *   String parent = ProjectName.of("[PROJECT]").toString();
    *   Service service = Service.newBuilder().build();
    *   Service response = serviceMonitoringServiceClient.createService(parent, service);
    * }
@@ -307,7 +307,7 @@ public final Service createService(String parent, Service service) {
    *     ServiceMonitoringServiceClient.create()) {
    *   CreateServiceRequest request =
    *       CreateServiceRequest.newBuilder()
-   *           .setParent(ServiceName.ofProjectServiceName("[PROJECT]", "[SERVICE]").toString())
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
    *           .setServiceId("serviceId-194185552")
    *           .setService(Service.newBuilder().build())
    *           .build();
@@ -333,7 +333,7 @@ public final Service createService(CreateServiceRequest request) {
    *     ServiceMonitoringServiceClient.create()) {
    *   CreateServiceRequest request =
    *       CreateServiceRequest.newBuilder()
-   *           .setParent(ServiceName.ofProjectServiceName("[PROJECT]", "[SERVICE]").toString())
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
    *           .setServiceId("serviceId-194185552")
    *           .setService(Service.newBuilder().build())
    *           .build();
@@ -542,7 +542,7 @@ public final ListServicesPagedResponse listServices(ProjectName parent) {
    * 
{@code
    * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient =
    *     ServiceMonitoringServiceClient.create()) {
-   *   String parent = ServiceName.ofProjectServiceName("[PROJECT]", "[SERVICE]").toString();
+   *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (Service element : serviceMonitoringServiceClient.listServices(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -571,7 +571,7 @@ public final ListServicesPagedResponse listServices(String parent) {
    *     ServiceMonitoringServiceClient.create()) {
    *   ListServicesRequest request =
    *       ListServicesRequest.newBuilder()
-   *           .setParent(ServiceName.ofProjectServiceName("[PROJECT]", "[SERVICE]").toString())
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
    *           .setFilter("filter-1274492040")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -600,7 +600,7 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request)
    *     ServiceMonitoringServiceClient.create()) {
    *   ListServicesRequest request =
    *       ListServicesRequest.newBuilder()
-   *           .setParent(ServiceName.ofProjectServiceName("[PROJECT]", "[SERVICE]").toString())
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
    *           .setFilter("filter-1274492040")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -630,7 +630,7 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request)
    *     ServiceMonitoringServiceClient.create()) {
    *   ListServicesRequest request =
    *       ListServicesRequest.newBuilder()
-   *           .setParent(ServiceName.ofProjectServiceName("[PROJECT]", "[SERVICE]").toString())
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
    *           .setFilter("filter-1274492040")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
diff --git a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java
index 26a7e28e..be176117 100644
--- a/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java
+++ b/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/UptimeCheckServiceClient.java
@@ -270,9 +270,7 @@ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(ProjectN
    *
    * 
{@code
    * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) {
-   *   String parent =
-   *       UptimeCheckConfigName.ofProjectUptimeCheckConfigName("[PROJECT]", "[UPTIME_CHECK_CONFIG]")
-   *           .toString();
+   *   String parent = ProjectName.of("[PROJECT]").toString();
    *   for (UptimeCheckConfig element :
    *       uptimeCheckServiceClient.listUptimeCheckConfigs(parent).iterateAll()) {
    *     // doThingsWith(element);
@@ -302,10 +300,7 @@ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(String p
    * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) {
    *   ListUptimeCheckConfigsRequest request =
    *       ListUptimeCheckConfigsRequest.newBuilder()
-   *           .setParent(
-   *               UptimeCheckConfigName.ofProjectUptimeCheckConfigName(
-   *                       "[PROJECT]", "[UPTIME_CHECK_CONFIG]")
-   *                   .toString())
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -335,10 +330,7 @@ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(
    * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) {
    *   ListUptimeCheckConfigsRequest request =
    *       ListUptimeCheckConfigsRequest.newBuilder()
-   *           .setParent(
-   *               UptimeCheckConfigName.ofProjectUptimeCheckConfigName(
-   *                       "[PROJECT]", "[UPTIME_CHECK_CONFIG]")
-   *                   .toString())
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -367,10 +359,7 @@ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(
    * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) {
    *   ListUptimeCheckConfigsRequest request =
    *       ListUptimeCheckConfigsRequest.newBuilder()
-   *           .setParent(
-   *               UptimeCheckConfigName.ofProjectUptimeCheckConfigName(
-   *                       "[PROJECT]", "[UPTIME_CHECK_CONFIG]")
-   *                   .toString())
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -601,9 +590,7 @@ public final UptimeCheckConfig createUptimeCheckConfig(
    *
    * 
{@code
    * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) {
-   *   String parent =
-   *       UptimeCheckConfigName.ofProjectUptimeCheckConfigName("[PROJECT]", "[UPTIME_CHECK_CONFIG]")
-   *           .toString();
+   *   String parent = ProjectName.of("[PROJECT]").toString();
    *   UptimeCheckConfig uptimeCheckConfig = UptimeCheckConfig.newBuilder().build();
    *   UptimeCheckConfig response =
    *       uptimeCheckServiceClient.createUptimeCheckConfig(parent, uptimeCheckConfig);
@@ -636,10 +623,7 @@ public final UptimeCheckConfig createUptimeCheckConfig(
    * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) {
    *   CreateUptimeCheckConfigRequest request =
    *       CreateUptimeCheckConfigRequest.newBuilder()
-   *           .setParent(
-   *               UptimeCheckConfigName.ofProjectUptimeCheckConfigName(
-   *                       "[PROJECT]", "[UPTIME_CHECK_CONFIG]")
-   *                   .toString())
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
    *           .setUptimeCheckConfig(UptimeCheckConfig.newBuilder().build())
    *           .build();
    *   UptimeCheckConfig response = uptimeCheckServiceClient.createUptimeCheckConfig(request);
@@ -663,10 +647,7 @@ public final UptimeCheckConfig createUptimeCheckConfig(CreateUptimeCheckConfigRe
    * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) {
    *   CreateUptimeCheckConfigRequest request =
    *       CreateUptimeCheckConfigRequest.newBuilder()
-   *           .setParent(
-   *               UptimeCheckConfigName.ofProjectUptimeCheckConfigName(
-   *                       "[PROJECT]", "[UPTIME_CHECK_CONFIG]")
-   *                   .toString())
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
    *           .setUptimeCheckConfig(UptimeCheckConfig.newBuilder().build())
    *           .build();
    *   ApiFuture future =
diff --git a/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java b/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java
index 12a7fa59..1545e5ce 100644
--- a/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java
+++ b/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicyServiceGrpc.java
@@ -35,6 +35,7 @@
 @javax.annotation.Generated(
     value = "by gRPC proto compiler",
     comments = "Source: google/monitoring/v3/alert_service.proto")
+@io.grpc.stub.annotations.GrpcGenerated
 public final class AlertPolicyServiceGrpc {
 
   private AlertPolicyServiceGrpc() {}
diff --git a/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java b/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java
index 1b7b94fe..8629a1c0 100644
--- a/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java
+++ b/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/GroupServiceGrpc.java
@@ -37,6 +37,7 @@
 @javax.annotation.Generated(
     value = "by gRPC proto compiler",
     comments = "Source: google/monitoring/v3/group_service.proto")
+@io.grpc.stub.annotations.GrpcGenerated
 public final class GroupServiceGrpc {
 
   private GroupServiceGrpc() {}
diff --git a/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java b/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java
index a3097396..737ec675 100644
--- a/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java
+++ b/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceGrpc.java
@@ -28,6 +28,7 @@
 @javax.annotation.Generated(
     value = "by gRPC proto compiler",
     comments = "Source: google/monitoring/v3/metric_service.proto")
+@io.grpc.stub.annotations.GrpcGenerated
 public final class MetricServiceGrpc {
 
   private MetricServiceGrpc() {}
diff --git a/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java b/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java
index 60fa14e6..0a904986 100644
--- a/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java
+++ b/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/NotificationChannelServiceGrpc.java
@@ -28,6 +28,7 @@
 @javax.annotation.Generated(
     value = "by gRPC proto compiler",
     comments = "Source: google/monitoring/v3/notification_service.proto")
+@io.grpc.stub.annotations.GrpcGenerated
 public final class NotificationChannelServiceGrpc {
 
   private NotificationChannelServiceGrpc() {}
diff --git a/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceGrpc.java b/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceGrpc.java
index a510fc19..4b6e6d4c 100644
--- a/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceGrpc.java
+++ b/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/QueryServiceGrpc.java
@@ -29,6 +29,7 @@
 @javax.annotation.Generated(
     value = "by gRPC proto compiler",
     comments = "Source: google/monitoring/v3/query_service.proto")
+@io.grpc.stub.annotations.GrpcGenerated
 public final class QueryServiceGrpc {
 
   private QueryServiceGrpc() {}
diff --git a/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java b/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java
index 89abf1b5..7d42c9f9 100644
--- a/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java
+++ b/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ServiceMonitoringServiceGrpc.java
@@ -30,6 +30,7 @@
 @javax.annotation.Generated(
     value = "by gRPC proto compiler",
     comments = "Source: google/monitoring/v3/service_service.proto")
+@io.grpc.stub.annotations.GrpcGenerated
 public final class ServiceMonitoringServiceGrpc {
 
   private ServiceMonitoringServiceGrpc() {}
diff --git a/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java b/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java
index ade46fb1..27fc69b5 100644
--- a/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java
+++ b/grpc-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/UptimeCheckServiceGrpc.java
@@ -34,6 +34,7 @@
 @javax.annotation.Generated(
     value = "by gRPC proto compiler",
     comments = "Source: google/monitoring/v3/uptime_service.proto")
+@io.grpc.stub.annotations.GrpcGenerated
 public final class UptimeCheckServiceGrpc {
 
   private UptimeCheckServiceGrpc() {}