From 326b2867b6d0815dbf34bf2bd8f39c82a2dcb49f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 14:44:21 +0000 Subject: [PATCH 1/5] chore(main): release 2.3.8-SNAPSHOT (#748) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 04ebf785..df260689 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.7 + 2.3.8-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.7 + 2.3.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.7 + 0.93.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.7 + 0.93.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.7 + 2.3.8-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.7 + 0.93.8-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.7 + 0.93.8-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.7 + 2.3.8-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 18089ab5..2c5ee640 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.7 + 2.3.8-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.7 + 2.3.8-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 841046df..2cb26075 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.7 + 2.3.8-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.7 + 2.3.8-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 55a9f3f5..202a1d16 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.7 + 0.93.8-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.7 + 2.3.8-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 185da7b8..9b310e61 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.7 + 0.93.8-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.7 + 2.3.8-SNAPSHOT diff --git a/pom.xml b/pom.xml index 843d6fc7..e0956236 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.7 + 2.3.8-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.7 + 0.93.8-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.7 + 0.93.8-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.7 + 2.3.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.7 + 0.93.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.7 + 0.93.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.7 + 2.3.8-SNAPSHOT com.google.cloud google-cloud-tasks - 2.3.7 + 2.3.8-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 4c38c556..eaf0dfe1 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.7 + 2.3.8-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.7 + 2.3.8-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 8afae7e7..1beae1c1 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.7 + 0.93.8-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.7 + 2.3.8-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index bd63a630..4f5d5339 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.7 + 0.93.8-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.7 + 2.3.8-SNAPSHOT diff --git a/versions.txt b/versions.txt index 8eb90724..207e8c35 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.7:2.3.7 -grpc-google-cloud-tasks-v2beta3:0.93.7:0.93.7 -grpc-google-cloud-tasks-v2beta2:0.93.7:0.93.7 -grpc-google-cloud-tasks-v2:2.3.7:2.3.7 -proto-google-cloud-tasks-v2beta3:0.93.7:0.93.7 -proto-google-cloud-tasks-v2beta2:0.93.7:0.93.7 -proto-google-cloud-tasks-v2:2.3.7:2.3.7 +google-cloud-tasks:2.3.7:2.3.8-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.93.7:0.93.8-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.93.7:0.93.8-SNAPSHOT +grpc-google-cloud-tasks-v2:2.3.7:2.3.8-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.93.7:0.93.8-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.93.7:0.93.8-SNAPSHOT +proto-google-cloud-tasks-v2:2.3.7:2.3.8-SNAPSHOT From 06b5769c05847976f4c91a943a226c1f259c45e7 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 15:08:43 +0000 Subject: [PATCH 2/5] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#745) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 --- .../cloud/tasks/v2/CloudTasksClient.java | 483 ++++++++++---- .../cloud/tasks/v2/CloudTasksSettings.java | 12 +- .../google/cloud/tasks/v2/package-info.java | 7 +- .../tasks/v2/stub/CloudTasksStubSettings.java | 12 +- .../tasks/v2/stub/HttpJsonCloudTasksStub.java | 22 +- .../cloud/tasks/v2beta2/CloudTasksClient.java | 595 +++++++++++++----- .../tasks/v2beta2/CloudTasksSettings.java | 12 +- .../cloud/tasks/v2beta2/package-info.java | 7 +- .../v2beta2/stub/CloudTasksStubSettings.java | 12 +- .../v2beta2/stub/HttpJsonCloudTasksStub.java | 30 +- .../cloud/tasks/v2beta3/CloudTasksClient.java | 483 ++++++++++---- .../tasks/v2beta3/CloudTasksSettings.java | 12 +- .../cloud/tasks/v2beta3/package-info.java | 7 +- .../v2beta3/stub/CloudTasksStubSettings.java | 12 +- .../v2beta3/stub/HttpJsonCloudTasksStub.java | 22 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createqueue/AsyncCreateQueue.java | 7 +- .../createqueue/SyncCreateQueue.java | 7 +- .../SyncCreateQueueLocationnameQueue.java | 7 +- .../SyncCreateQueueStringQueue.java | 7 +- .../createtask/AsyncCreateTask.java | 7 +- .../createtask/SyncCreateTask.java | 7 +- .../SyncCreateTaskQueuenameTask.java | 7 +- .../createtask/SyncCreateTaskStringTask.java | 7 +- .../deletequeue/AsyncDeleteQueue.java | 7 +- .../deletequeue/SyncDeleteQueue.java | 7 +- .../deletequeue/SyncDeleteQueueQueuename.java | 7 +- .../deletequeue/SyncDeleteQueueString.java | 7 +- .../deletetask/AsyncDeleteTask.java | 7 +- .../deletetask/SyncDeleteTask.java | 7 +- .../deletetask/SyncDeleteTaskString.java | 7 +- .../deletetask/SyncDeleteTaskTaskname.java | 7 +- .../getiampolicy/AsyncGetIamPolicy.java | 7 +- .../getiampolicy/SyncGetIamPolicy.java | 7 +- .../SyncGetIamPolicyResourcename.java | 7 +- .../getiampolicy/SyncGetIamPolicyString.java | 7 +- .../getqueue/AsyncGetQueue.java | 7 +- .../getqueue/SyncGetQueue.java | 7 +- .../getqueue/SyncGetQueueQueuename.java | 7 +- .../getqueue/SyncGetQueueString.java | 7 +- .../gettask/AsyncGetTask.java | 7 +- .../cloudtasksclient/gettask/SyncGetTask.java | 7 +- .../gettask/SyncGetTaskString.java | 7 +- .../gettask/SyncGetTaskTaskname.java | 7 +- .../listqueues/AsyncListQueues.java | 7 +- .../listqueues/AsyncListQueuesPaged.java | 7 +- .../listqueues/SyncListQueues.java | 7 +- .../SyncListQueuesLocationname.java | 7 +- .../listqueues/SyncListQueuesString.java | 7 +- .../listtasks/AsyncListTasks.java | 7 +- .../listtasks/AsyncListTasksPaged.java | 7 +- .../listtasks/SyncListTasks.java | 7 +- .../listtasks/SyncListTasksQueuename.java | 7 +- .../listtasks/SyncListTasksString.java | 7 +- .../pausequeue/AsyncPauseQueue.java | 7 +- .../pausequeue/SyncPauseQueue.java | 7 +- .../pausequeue/SyncPauseQueueQueuename.java | 7 +- .../pausequeue/SyncPauseQueueString.java | 7 +- .../purgequeue/AsyncPurgeQueue.java | 7 +- .../purgequeue/SyncPurgeQueue.java | 7 +- .../purgequeue/SyncPurgeQueueQueuename.java | 7 +- .../purgequeue/SyncPurgeQueueString.java | 7 +- .../resumequeue/AsyncResumeQueue.java | 7 +- .../resumequeue/SyncResumeQueue.java | 7 +- .../resumequeue/SyncResumeQueueQueuename.java | 7 +- .../resumequeue/SyncResumeQueueString.java | 7 +- .../runtask/AsyncRunTask.java | 7 +- .../cloudtasksclient/runtask/SyncRunTask.java | 7 +- .../runtask/SyncRunTaskString.java | 7 +- .../runtask/SyncRunTaskTaskname.java | 7 +- .../setiampolicy/AsyncSetIamPolicy.java | 7 +- .../setiampolicy/SyncSetIamPolicy.java | 7 +- .../SyncSetIamPolicyResourcenamePolicy.java | 7 +- .../SyncSetIamPolicyStringPolicy.java | 7 +- .../AsyncTestIamPermissions.java | 7 +- .../SyncTestIamPermissions.java | 7 +- ...tIamPermissionsResourcenameListstring.java | 7 +- ...yncTestIamPermissionsStringListstring.java | 7 +- .../updatequeue/AsyncUpdateQueue.java | 7 +- .../updatequeue/SyncUpdateQueue.java | 7 +- .../SyncUpdateQueueQueueFieldmask.java | 7 +- .../getqueue/SyncGetQueue.java | 12 +- .../getqueue/SyncGetQueue.java | 12 +- .../acknowledgetask/AsyncAcknowledgeTask.java | 7 +- .../acknowledgetask/SyncAcknowledgeTask.java | 7 +- .../SyncAcknowledgeTaskStringTimestamp.java | 7 +- .../SyncAcknowledgeTaskTasknameTimestamp.java | 7 +- .../cancellease/AsyncCancelLease.java | 7 +- .../cancellease/SyncCancelLease.java | 7 +- .../SyncCancelLeaseStringTimestamp.java | 7 +- .../SyncCancelLeaseTasknameTimestamp.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createqueue/AsyncCreateQueue.java | 7 +- .../createqueue/SyncCreateQueue.java | 7 +- .../SyncCreateQueueLocationnameQueue.java | 7 +- .../SyncCreateQueueStringQueue.java | 7 +- .../createtask/AsyncCreateTask.java | 7 +- .../createtask/SyncCreateTask.java | 7 +- .../SyncCreateTaskQueuenameTask.java | 7 +- .../createtask/SyncCreateTaskStringTask.java | 7 +- .../deletequeue/AsyncDeleteQueue.java | 7 +- .../deletequeue/SyncDeleteQueue.java | 7 +- .../deletequeue/SyncDeleteQueueQueuename.java | 7 +- .../deletequeue/SyncDeleteQueueString.java | 7 +- .../deletetask/AsyncDeleteTask.java | 7 +- .../deletetask/SyncDeleteTask.java | 7 +- .../deletetask/SyncDeleteTaskString.java | 7 +- .../deletetask/SyncDeleteTaskTaskname.java | 7 +- .../getiampolicy/AsyncGetIamPolicy.java | 7 +- .../getiampolicy/SyncGetIamPolicy.java | 7 +- .../SyncGetIamPolicyResourcename.java | 7 +- .../getiampolicy/SyncGetIamPolicyString.java | 7 +- .../getqueue/AsyncGetQueue.java | 7 +- .../getqueue/SyncGetQueue.java | 7 +- .../getqueue/SyncGetQueueQueuename.java | 7 +- .../getqueue/SyncGetQueueString.java | 7 +- .../gettask/AsyncGetTask.java | 7 +- .../cloudtasksclient/gettask/SyncGetTask.java | 7 +- .../gettask/SyncGetTaskString.java | 7 +- .../gettask/SyncGetTaskTaskname.java | 7 +- .../leasetasks/AsyncLeaseTasks.java | 7 +- .../leasetasks/SyncLeaseTasks.java | 7 +- .../SyncLeaseTasksQueuenameDuration.java | 7 +- .../SyncLeaseTasksStringDuration.java | 7 +- .../listqueues/AsyncListQueues.java | 7 +- .../listqueues/AsyncListQueuesPaged.java | 7 +- .../listqueues/SyncListQueues.java | 7 +- .../SyncListQueuesLocationname.java | 7 +- .../listqueues/SyncListQueuesString.java | 7 +- .../listtasks/AsyncListTasks.java | 7 +- .../listtasks/AsyncListTasksPaged.java | 7 +- .../listtasks/SyncListTasks.java | 7 +- .../listtasks/SyncListTasksQueuename.java | 7 +- .../listtasks/SyncListTasksString.java | 7 +- .../pausequeue/AsyncPauseQueue.java | 7 +- .../pausequeue/SyncPauseQueue.java | 7 +- .../pausequeue/SyncPauseQueueQueuename.java | 7 +- .../pausequeue/SyncPauseQueueString.java | 7 +- .../purgequeue/AsyncPurgeQueue.java | 7 +- .../purgequeue/SyncPurgeQueue.java | 7 +- .../purgequeue/SyncPurgeQueueQueuename.java | 7 +- .../purgequeue/SyncPurgeQueueString.java | 7 +- .../renewlease/AsyncRenewLease.java | 7 +- .../renewlease/SyncRenewLease.java | 7 +- ...SyncRenewLeaseStringTimestampDuration.java | 7 +- ...ncRenewLeaseTasknameTimestampDuration.java | 7 +- .../resumequeue/AsyncResumeQueue.java | 7 +- .../resumequeue/SyncResumeQueue.java | 7 +- .../resumequeue/SyncResumeQueueQueuename.java | 7 +- .../resumequeue/SyncResumeQueueString.java | 7 +- .../runtask/AsyncRunTask.java | 7 +- .../cloudtasksclient/runtask/SyncRunTask.java | 7 +- .../runtask/SyncRunTaskString.java | 7 +- .../runtask/SyncRunTaskTaskname.java | 7 +- .../setiampolicy/AsyncSetIamPolicy.java | 7 +- .../setiampolicy/SyncSetIamPolicy.java | 7 +- .../SyncSetIamPolicyResourcenamePolicy.java | 7 +- .../SyncSetIamPolicyStringPolicy.java | 7 +- .../AsyncTestIamPermissions.java | 7 +- .../SyncTestIamPermissions.java | 7 +- ...tIamPermissionsResourcenameListstring.java | 7 +- ...yncTestIamPermissionsStringListstring.java | 7 +- .../updatequeue/AsyncUpdateQueue.java | 7 +- .../updatequeue/SyncUpdateQueue.java | 7 +- .../SyncUpdateQueueQueueFieldmask.java | 7 +- .../getqueue/SyncGetQueue.java | 12 +- .../getqueue/SyncGetQueue.java | 12 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createqueue/AsyncCreateQueue.java | 7 +- .../createqueue/SyncCreateQueue.java | 7 +- .../SyncCreateQueueLocationnameQueue.java | 7 +- .../SyncCreateQueueStringQueue.java | 7 +- .../createtask/AsyncCreateTask.java | 7 +- .../createtask/SyncCreateTask.java | 7 +- .../SyncCreateTaskQueuenameTask.java | 7 +- .../createtask/SyncCreateTaskStringTask.java | 7 +- .../deletequeue/AsyncDeleteQueue.java | 7 +- .../deletequeue/SyncDeleteQueue.java | 7 +- .../deletequeue/SyncDeleteQueueQueuename.java | 7 +- .../deletequeue/SyncDeleteQueueString.java | 7 +- .../deletetask/AsyncDeleteTask.java | 7 +- .../deletetask/SyncDeleteTask.java | 7 +- .../deletetask/SyncDeleteTaskString.java | 7 +- .../deletetask/SyncDeleteTaskTaskname.java | 7 +- .../getiampolicy/AsyncGetIamPolicy.java | 7 +- .../getiampolicy/SyncGetIamPolicy.java | 7 +- .../SyncGetIamPolicyResourcename.java | 7 +- .../getiampolicy/SyncGetIamPolicyString.java | 7 +- .../getqueue/AsyncGetQueue.java | 7 +- .../getqueue/SyncGetQueue.java | 7 +- .../getqueue/SyncGetQueueQueuename.java | 7 +- .../getqueue/SyncGetQueueString.java | 7 +- .../gettask/AsyncGetTask.java | 7 +- .../cloudtasksclient/gettask/SyncGetTask.java | 7 +- .../gettask/SyncGetTaskString.java | 7 +- .../gettask/SyncGetTaskTaskname.java | 7 +- .../listqueues/AsyncListQueues.java | 7 +- .../listqueues/AsyncListQueuesPaged.java | 7 +- .../listqueues/SyncListQueues.java | 7 +- .../SyncListQueuesLocationname.java | 7 +- .../listqueues/SyncListQueuesString.java | 7 +- .../listtasks/AsyncListTasks.java | 7 +- .../listtasks/AsyncListTasksPaged.java | 7 +- .../listtasks/SyncListTasks.java | 7 +- .../listtasks/SyncListTasksQueuename.java | 7 +- .../listtasks/SyncListTasksString.java | 7 +- .../pausequeue/AsyncPauseQueue.java | 7 +- .../pausequeue/SyncPauseQueue.java | 7 +- .../pausequeue/SyncPauseQueueQueuename.java | 7 +- .../pausequeue/SyncPauseQueueString.java | 7 +- .../purgequeue/AsyncPurgeQueue.java | 7 +- .../purgequeue/SyncPurgeQueue.java | 7 +- .../purgequeue/SyncPurgeQueueQueuename.java | 7 +- .../purgequeue/SyncPurgeQueueString.java | 7 +- .../resumequeue/AsyncResumeQueue.java | 7 +- .../resumequeue/SyncResumeQueue.java | 7 +- .../resumequeue/SyncResumeQueueQueuename.java | 7 +- .../resumequeue/SyncResumeQueueString.java | 7 +- .../runtask/AsyncRunTask.java | 7 +- .../cloudtasksclient/runtask/SyncRunTask.java | 7 +- .../runtask/SyncRunTaskString.java | 7 +- .../runtask/SyncRunTaskTaskname.java | 7 +- .../setiampolicy/AsyncSetIamPolicy.java | 7 +- .../setiampolicy/SyncSetIamPolicy.java | 7 +- .../SyncSetIamPolicyResourcenamePolicy.java | 7 +- .../SyncSetIamPolicyStringPolicy.java | 7 +- .../AsyncTestIamPermissions.java | 7 +- .../SyncTestIamPermissions.java | 7 +- ...tIamPermissionsResourcenameListstring.java | 7 +- ...yncTestIamPermissionsStringListstring.java | 7 +- .../updatequeue/AsyncUpdateQueue.java | 7 +- .../updatequeue/SyncUpdateQueue.java | 7 +- .../SyncUpdateQueueQueueFieldmask.java | 7 +- .../getqueue/SyncGetQueue.java | 12 +- .../getqueue/SyncGetQueue.java | 12 +- 241 files changed, 2342 insertions(+), 998 deletions(-) diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java index cf1c53d1..70f3fcdb 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java @@ -49,8 +49,11 @@ * calls that map to API methods. Sample code to get started: * *
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
  *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
  *   Queue response = cloudTasksClient.getQueue(name);
@@ -86,8 +89,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -98,8 +104,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build();
  * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
@@ -109,8 +118,11 @@
  * the wire:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -178,8 +190,11 @@ public CloudTasksStub getStub() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
@@ -207,8 +222,11 @@ public final ListQueuesPagedResponse listQueues(LocationName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
@@ -235,8 +253,11 @@ public final ListQueuesPagedResponse listQueues(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -267,8 +288,11 @@ public final ListQueuesPagedResponse listQueues(ListQueuesRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -298,8 +322,11 @@ public final UnaryCallable listQueue
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -334,8 +361,11 @@ public final UnaryCallable listQueuesCall
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.getQueue(name);
@@ -359,8 +389,11 @@ public final Queue getQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.getQueue(name);
@@ -383,8 +416,11 @@ public final Queue getQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetQueueRequest request =
    *       GetQueueRequest.newBuilder()
@@ -408,8 +444,11 @@ public final Queue getQueue(GetQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetQueueRequest request =
    *       GetQueueRequest.newBuilder()
@@ -439,8 +478,11 @@ public final UnaryCallable getQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Queue queue = Queue.newBuilder().build();
@@ -480,8 +522,11 @@ public final Queue createQueue(LocationName parent, Queue queue) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Queue queue = Queue.newBuilder().build();
@@ -518,8 +563,11 @@ public final Queue createQueue(String parent, Queue queue) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
@@ -551,8 +599,11 @@ public final Queue createQueue(CreateQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
@@ -585,8 +636,11 @@ public final UnaryCallable createQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   Queue queue = Queue.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -625,8 +679,11 @@ public final Queue updateQueue(Queue queue, FieldMask updateMask) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   UpdateQueueRequest request =
    *       UpdateQueueRequest.newBuilder()
@@ -660,8 +717,11 @@ public final Queue updateQueue(UpdateQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   UpdateQueueRequest request =
    *       UpdateQueueRequest.newBuilder()
@@ -693,8 +753,11 @@ public final UnaryCallable updateQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   cloudTasksClient.deleteQueue(name);
@@ -726,8 +789,11 @@ public final void deleteQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   cloudTasksClient.deleteQueue(name);
@@ -758,8 +824,11 @@ public final void deleteQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteQueueRequest request =
    *       DeleteQueueRequest.newBuilder()
@@ -791,8 +860,11 @@ public final void deleteQueue(DeleteQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteQueueRequest request =
    *       DeleteQueueRequest.newBuilder()
@@ -820,8 +892,11 @@ public final UnaryCallable deleteQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.purgeQueue(name);
@@ -850,8 +925,11 @@ public final Queue purgeQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.purgeQueue(name);
@@ -879,8 +957,11 @@ public final Queue purgeQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PurgeQueueRequest request =
    *       PurgeQueueRequest.newBuilder()
@@ -909,8 +990,11 @@ public final Queue purgeQueue(PurgeQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PurgeQueueRequest request =
    *       PurgeQueueRequest.newBuilder()
@@ -938,8 +1022,11 @@ public final UnaryCallable purgeQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.pauseQueue(name);
@@ -968,8 +1055,11 @@ public final Queue pauseQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.pauseQueue(name);
@@ -997,8 +1087,11 @@ public final Queue pauseQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PauseQueueRequest request =
    *       PauseQueueRequest.newBuilder()
@@ -1027,8 +1120,11 @@ public final Queue pauseQueue(PauseQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PauseQueueRequest request =
    *       PauseQueueRequest.newBuilder()
@@ -1061,8 +1157,11 @@ public final UnaryCallable pauseQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.resumeQueue(name);
@@ -1096,8 +1195,11 @@ public final Queue resumeQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.resumeQueue(name);
@@ -1130,8 +1232,11 @@ public final Queue resumeQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResumeQueueRequest request =
    *       ResumeQueueRequest.newBuilder()
@@ -1165,8 +1270,11 @@ public final Queue resumeQueue(ResumeQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResumeQueueRequest request =
    *       ResumeQueueRequest.newBuilder()
@@ -1197,8 +1305,11 @@ public final UnaryCallable resumeQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
@@ -1232,8 +1343,11 @@ public final Policy getIamPolicy(ResourceName resource) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
@@ -1264,8 +1378,11 @@ public final Policy getIamPolicy(String resource) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1302,8 +1419,11 @@ public final Policy getIamPolicy(QueueName queueName) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1338,8 +1458,11 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy policy = Policy.newBuilder().build();
@@ -1381,8 +1504,11 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy policy = Policy.newBuilder().build();
@@ -1421,8 +1547,11 @@ public final Policy setIamPolicy(String resource, Policy policy) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -1463,8 +1592,11 @@ public final Policy setIamPolicy(QueueName queue, Policy policy) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -1495,8 +1627,11 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   List permissions = new ArrayList<>();
@@ -1535,8 +1670,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   List permissions = new ArrayList<>();
@@ -1575,8 +1713,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1612,8 +1753,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1646,8 +1790,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
@@ -1680,8 +1827,11 @@ public final ListTasksPagedResponse listTasks(QueueName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
@@ -1713,8 +1863,11 @@ public final ListTasksPagedResponse listTasks(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1749,8 +1902,11 @@ public final ListTasksPagedResponse listTasks(ListTasksRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1784,8 +1940,11 @@ public final UnaryCallable listTasksPa
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1819,8 +1978,11 @@ public final UnaryCallable listTasksCallabl
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Task response = cloudTasksClient.getTask(name);
@@ -1844,8 +2006,11 @@ public final Task getTask(TaskName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Task response = cloudTasksClient.getTask(name);
@@ -1868,8 +2033,11 @@ public final Task getTask(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetTaskRequest request =
    *       GetTaskRequest.newBuilder()
@@ -1893,8 +2061,11 @@ public final Task getTask(GetTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetTaskRequest request =
    *       GetTaskRequest.newBuilder()
@@ -1923,8 +2094,11 @@ public final UnaryCallable getTaskCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Task task = Task.newBuilder().build();
@@ -1982,8 +2156,11 @@ public final Task createTask(QueueName parent, Task task) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Task task = Task.newBuilder().build();
@@ -2038,8 +2215,11 @@ public final Task createTask(String parent, Task task) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
@@ -2070,8 +2250,11 @@ public final Task createTask(CreateTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
@@ -2098,8 +2281,11 @@ public final UnaryCallable createTaskCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   cloudTasksClient.deleteTask(name);
@@ -2126,8 +2312,11 @@ public final void deleteTask(TaskName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   cloudTasksClient.deleteTask(name);
@@ -2153,8 +2342,11 @@ public final void deleteTask(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteTaskRequest request =
    *       DeleteTaskRequest.newBuilder()
@@ -2181,8 +2373,11 @@ public final void deleteTask(DeleteTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteTaskRequest request =
    *       DeleteTaskRequest.newBuilder()
@@ -2226,8 +2421,11 @@ public final UnaryCallable deleteTaskCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Task response = cloudTasksClient.runTask(name);
@@ -2272,8 +2470,11 @@ public final Task runTask(TaskName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Task response = cloudTasksClient.runTask(name);
@@ -2317,8 +2518,11 @@ public final Task runTask(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   RunTaskRequest request =
    *       RunTaskRequest.newBuilder()
@@ -2363,8 +2567,11 @@ public final Task runTask(RunTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   RunTaskRequest request =
    *       RunTaskRequest.newBuilder()
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java
index 5ba02bdf..e0f88bea 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java
@@ -60,16 +60,16 @@
  * 

For example, to set the total timeout of getQueue to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder();
  * cloudTasksSettingsBuilder
  *     .getQueueSettings()
  *     .setRetrySettings(
- *         cloudTasksSettingsBuilder
- *             .getQueueSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * CloudTasksSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java
index dc0f95a2..bea6f19b 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java
@@ -25,8 +25,11 @@
  * 

Sample for CloudTasksClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
  *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
  *   Queue response = cloudTasksClient.getQueue(name);
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java
index 917761b9..e10e0178 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java
@@ -94,16 +94,16 @@
  * 

For example, to set the total timeout of getQueue to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder();
  * cloudTasksSettingsBuilder
  *     .getQueueSettings()
  *     .setRetrySettings(
- *         cloudTasksSettingsBuilder
- *             .getQueueSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * CloudTasksStubSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksStub.java
index 79109ceb..1275be7a 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksStub.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksStub.java
@@ -166,7 +166,8 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                         return fields;
                       })
                   .setRequestBodyExtractor(
-                      request -> ProtoRestSerializer.create().toBody("queue", request.getQueue()))
+                      request ->
+                          ProtoRestSerializer.create().toBody("queue", request.getQueue(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -200,7 +201,8 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                         return fields;
                       })
                   .setRequestBodyExtractor(
-                      request -> ProtoRestSerializer.create().toBody("queue", request.getQueue()))
+                      request ->
+                          ProtoRestSerializer.create().toBody("queue", request.getQueue(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -267,7 +269,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -302,7 +304,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -337,7 +339,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -373,7 +375,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -409,7 +411,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -445,7 +447,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -550,7 +552,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearParent().build()))
+                              .toBody("*", request.toBuilder().clearParent().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -617,7 +619,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java
index 2fb0f905..50dc22dc 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java
@@ -52,8 +52,11 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
  *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
  *   Queue response = cloudTasksClient.getQueue(name);
@@ -89,8 +92,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -101,8 +107,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build();
  * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
@@ -112,8 +121,11 @@
  * the wire:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -182,8 +194,11 @@ public CloudTasksStub getStub() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
@@ -211,8 +226,11 @@ public final ListQueuesPagedResponse listQueues(LocationName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
@@ -239,8 +257,11 @@ public final ListQueuesPagedResponse listQueues(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -272,8 +293,11 @@ public final ListQueuesPagedResponse listQueues(ListQueuesRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -304,8 +328,11 @@ public final UnaryCallable listQueue
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -341,8 +368,11 @@ public final UnaryCallable listQueuesCall
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.getQueue(name);
@@ -366,8 +396,11 @@ public final Queue getQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.getQueue(name);
@@ -390,8 +423,11 @@ public final Queue getQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetQueueRequest request =
    *       GetQueueRequest.newBuilder()
@@ -416,8 +452,11 @@ public final Queue getQueue(GetQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetQueueRequest request =
    *       GetQueueRequest.newBuilder()
@@ -448,8 +487,11 @@ public final UnaryCallable getQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Queue queue = Queue.newBuilder().build();
@@ -489,8 +531,11 @@ public final Queue createQueue(LocationName parent, Queue queue) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Queue queue = Queue.newBuilder().build();
@@ -527,8 +572,11 @@ public final Queue createQueue(String parent, Queue queue) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
@@ -560,8 +608,11 @@ public final Queue createQueue(CreateQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
@@ -594,8 +645,11 @@ public final UnaryCallable createQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   Queue queue = Queue.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -634,8 +688,11 @@ public final Queue updateQueue(Queue queue, FieldMask updateMask) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   UpdateQueueRequest request =
    *       UpdateQueueRequest.newBuilder()
@@ -669,8 +726,11 @@ public final Queue updateQueue(UpdateQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   UpdateQueueRequest request =
    *       UpdateQueueRequest.newBuilder()
@@ -702,8 +762,11 @@ public final UnaryCallable updateQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   cloudTasksClient.deleteQueue(name);
@@ -735,8 +798,11 @@ public final void deleteQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   cloudTasksClient.deleteQueue(name);
@@ -767,8 +833,11 @@ public final void deleteQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteQueueRequest request =
    *       DeleteQueueRequest.newBuilder()
@@ -800,8 +869,11 @@ public final void deleteQueue(DeleteQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteQueueRequest request =
    *       DeleteQueueRequest.newBuilder()
@@ -829,8 +901,11 @@ public final UnaryCallable deleteQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.purgeQueue(name);
@@ -859,8 +934,11 @@ public final Queue purgeQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.purgeQueue(name);
@@ -888,8 +966,11 @@ public final Queue purgeQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PurgeQueueRequest request =
    *       PurgeQueueRequest.newBuilder()
@@ -918,8 +999,11 @@ public final Queue purgeQueue(PurgeQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PurgeQueueRequest request =
    *       PurgeQueueRequest.newBuilder()
@@ -948,8 +1032,11 @@ public final UnaryCallable purgeQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.pauseQueue(name);
@@ -979,8 +1066,11 @@ public final Queue pauseQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.pauseQueue(name);
@@ -1009,8 +1099,11 @@ public final Queue pauseQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PauseQueueRequest request =
    *       PauseQueueRequest.newBuilder()
@@ -1040,8 +1133,11 @@ public final Queue pauseQueue(PauseQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PauseQueueRequest request =
    *       PauseQueueRequest.newBuilder()
@@ -1074,8 +1170,11 @@ public final UnaryCallable pauseQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.resumeQueue(name);
@@ -1109,8 +1208,11 @@ public final Queue resumeQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.resumeQueue(name);
@@ -1143,8 +1245,11 @@ public final Queue resumeQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResumeQueueRequest request =
    *       ResumeQueueRequest.newBuilder()
@@ -1178,8 +1283,11 @@ public final Queue resumeQueue(ResumeQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResumeQueueRequest request =
    *       ResumeQueueRequest.newBuilder()
@@ -1210,8 +1318,11 @@ public final UnaryCallable resumeQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
@@ -1245,8 +1356,11 @@ public final Policy getIamPolicy(ResourceName resource) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
@@ -1277,8 +1391,11 @@ public final Policy getIamPolicy(String resource) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1315,8 +1432,11 @@ public final Policy getIamPolicy(QueueName queueName) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1351,8 +1471,11 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy policy = Policy.newBuilder().build();
@@ -1394,8 +1517,11 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy policy = Policy.newBuilder().build();
@@ -1434,8 +1560,11 @@ public final Policy setIamPolicy(String resource, Policy policy) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -1476,8 +1605,11 @@ public final Policy setIamPolicy(QueueName queue, Policy policy) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -1508,8 +1640,11 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   List permissions = new ArrayList<>();
@@ -1548,8 +1683,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   List permissions = new ArrayList<>();
@@ -1588,8 +1726,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1625,8 +1766,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1659,8 +1803,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
@@ -1693,8 +1840,11 @@ public final ListTasksPagedResponse listTasks(QueueName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
@@ -1726,8 +1876,11 @@ public final ListTasksPagedResponse listTasks(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1762,8 +1915,11 @@ public final ListTasksPagedResponse listTasks(ListTasksRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1797,8 +1953,11 @@ public final UnaryCallable listTasksPa
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1832,8 +1991,11 @@ public final UnaryCallable listTasksCallabl
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Task response = cloudTasksClient.getTask(name);
@@ -1857,8 +2019,11 @@ public final Task getTask(TaskName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Task response = cloudTasksClient.getTask(name);
@@ -1881,8 +2046,11 @@ public final Task getTask(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetTaskRequest request =
    *       GetTaskRequest.newBuilder()
@@ -1906,8 +2074,11 @@ public final Task getTask(GetTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetTaskRequest request =
    *       GetTaskRequest.newBuilder()
@@ -1938,8 +2109,11 @@ public final UnaryCallable getTaskCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Task task = Task.newBuilder().build();
@@ -1999,8 +2173,11 @@ public final Task createTask(QueueName parent, Task task) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Task task = Task.newBuilder().build();
@@ -2057,8 +2234,11 @@ public final Task createTask(String parent, Task task) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
@@ -2091,8 +2271,11 @@ public final Task createTask(CreateTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
@@ -2119,8 +2302,11 @@ public final UnaryCallable createTaskCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   cloudTasksClient.deleteTask(name);
@@ -2147,8 +2333,11 @@ public final void deleteTask(TaskName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   cloudTasksClient.deleteTask(name);
@@ -2174,8 +2363,11 @@ public final void deleteTask(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteTaskRequest request =
    *       DeleteTaskRequest.newBuilder()
@@ -2202,8 +2394,11 @@ public final void deleteTask(DeleteTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteTaskRequest request =
    *       DeleteTaskRequest.newBuilder()
@@ -2244,8 +2439,11 @@ public final UnaryCallable deleteTaskCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Duration leaseDuration = Duration.newBuilder().build();
@@ -2306,8 +2504,11 @@ public final LeaseTasksResponse leaseTasks(QueueName parent, Duration leaseDurat
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Duration leaseDuration = Duration.newBuilder().build();
@@ -2365,8 +2566,11 @@ public final LeaseTasksResponse leaseTasks(String parent, Duration leaseDuration
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   LeaseTasksRequest request =
    *       LeaseTasksRequest.newBuilder()
@@ -2411,8 +2615,11 @@ public final LeaseTasksResponse leaseTasks(LeaseTasksRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   LeaseTasksRequest request =
    *       LeaseTasksRequest.newBuilder()
@@ -2451,8 +2658,11 @@ public final UnaryCallable leaseTasksCall
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Timestamp scheduleTime = Timestamp.newBuilder().build();
@@ -2497,8 +2707,11 @@ public final void acknowledgeTask(TaskName name, Timestamp scheduleTime) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Timestamp scheduleTime = Timestamp.newBuilder().build();
@@ -2540,8 +2753,11 @@ public final void acknowledgeTask(String name, Timestamp scheduleTime) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   AcknowledgeTaskRequest request =
    *       AcknowledgeTaskRequest.newBuilder()
@@ -2578,8 +2794,11 @@ public final void acknowledgeTask(AcknowledgeTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   AcknowledgeTaskRequest request =
    *       AcknowledgeTaskRequest.newBuilder()
@@ -2607,8 +2826,11 @@ public final UnaryCallable acknowledgeTaskCallabl
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Timestamp scheduleTime = Timestamp.newBuilder().build();
@@ -2650,8 +2872,11 @@ public final Task renewLease(TaskName name, Timestamp scheduleTime, Duration lea
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Timestamp scheduleTime = Timestamp.newBuilder().build();
@@ -2693,8 +2918,11 @@ public final Task renewLease(String name, Timestamp scheduleTime, Duration lease
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   RenewLeaseRequest request =
    *       RenewLeaseRequest.newBuilder()
@@ -2724,8 +2952,11 @@ public final Task renewLease(RenewLeaseRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   RenewLeaseRequest request =
    *       RenewLeaseRequest.newBuilder()
@@ -2755,8 +2986,11 @@ public final UnaryCallable renewLeaseCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Timestamp scheduleTime = Timestamp.newBuilder().build();
@@ -2794,8 +3028,11 @@ public final Task cancelLease(TaskName name, Timestamp scheduleTime) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Timestamp scheduleTime = Timestamp.newBuilder().build();
@@ -2830,8 +3067,11 @@ public final Task cancelLease(String name, Timestamp scheduleTime) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CancelLeaseRequest request =
    *       CancelLeaseRequest.newBuilder()
@@ -2861,8 +3101,11 @@ public final Task cancelLease(CancelLeaseRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CancelLeaseRequest request =
    *       CancelLeaseRequest.newBuilder()
@@ -2911,8 +3154,11 @@ public final UnaryCallable cancelLeaseCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Task response = cloudTasksClient.runTask(name);
@@ -2961,8 +3207,11 @@ public final Task runTask(TaskName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Task response = cloudTasksClient.runTask(name);
@@ -3010,8 +3259,11 @@ public final Task runTask(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   RunTaskRequest request =
    *       RunTaskRequest.newBuilder()
@@ -3060,8 +3312,11 @@ public final Task runTask(RunTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   RunTaskRequest request =
    *       RunTaskRequest.newBuilder()
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java
index 88d405e7..5cb1330d 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java
@@ -60,16 +60,16 @@
  * 

For example, to set the total timeout of getQueue to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder();
  * cloudTasksSettingsBuilder
  *     .getQueueSettings()
  *     .setRetrySettings(
- *         cloudTasksSettingsBuilder
- *             .getQueueSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * CloudTasksSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/package-info.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/package-info.java
index 190255fe..40cf04a0 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/package-info.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/package-info.java
@@ -25,8 +25,11 @@
  * 

Sample for CloudTasksClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
  *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
  *   Queue response = cloudTasksClient.getQueue(name);
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java
index 27411d78..bac60daf 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java
@@ -99,16 +99,16 @@
  * 

For example, to set the total timeout of getQueue to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder();
  * cloudTasksSettingsBuilder
  *     .getQueueSettings()
  *     .setRetrySettings(
- *         cloudTasksSettingsBuilder
- *             .getQueueSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * CloudTasksStubSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksStub.java
index 268878f2..1ccc3db0 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksStub.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksStub.java
@@ -173,7 +173,8 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                         return fields;
                       })
                   .setRequestBodyExtractor(
-                      request -> ProtoRestSerializer.create().toBody("queue", request.getQueue()))
+                      request ->
+                          ProtoRestSerializer.create().toBody("queue", request.getQueue(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -207,7 +208,8 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                         return fields;
                       })
                   .setRequestBodyExtractor(
-                      request -> ProtoRestSerializer.create().toBody("queue", request.getQueue()))
+                      request ->
+                          ProtoRestSerializer.create().toBody("queue", request.getQueue(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -274,7 +276,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -309,7 +311,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -344,7 +346,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -380,7 +382,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -416,7 +418,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -452,7 +454,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -557,7 +559,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearParent().build()))
+                              .toBody("*", request.toBuilder().clearParent().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -625,7 +627,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -661,7 +663,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -696,7 +698,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -731,7 +733,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -766,7 +768,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java
index 32fdf62d..48487c8f 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java
@@ -50,8 +50,11 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
  *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
  *   Queue response = cloudTasksClient.getQueue(name);
@@ -87,8 +90,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -99,8 +105,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build();
  * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
@@ -110,8 +119,11 @@
  * the wire:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -180,8 +192,11 @@ public CloudTasksStub getStub() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
@@ -209,8 +224,11 @@ public final ListQueuesPagedResponse listQueues(LocationName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
@@ -237,8 +255,11 @@ public final ListQueuesPagedResponse listQueues(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -270,8 +291,11 @@ public final ListQueuesPagedResponse listQueues(ListQueuesRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -302,8 +326,11 @@ public final UnaryCallable listQueue
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -339,8 +366,11 @@ public final UnaryCallable listQueuesCall
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.getQueue(name);
@@ -364,8 +394,11 @@ public final Queue getQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.getQueue(name);
@@ -388,8 +421,11 @@ public final Queue getQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetQueueRequest request =
    *       GetQueueRequest.newBuilder()
@@ -414,8 +450,11 @@ public final Queue getQueue(GetQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetQueueRequest request =
    *       GetQueueRequest.newBuilder()
@@ -446,8 +485,11 @@ public final UnaryCallable getQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Queue queue = Queue.newBuilder().build();
@@ -487,8 +529,11 @@ public final Queue createQueue(LocationName parent, Queue queue) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Queue queue = Queue.newBuilder().build();
@@ -525,8 +570,11 @@ public final Queue createQueue(String parent, Queue queue) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
@@ -558,8 +606,11 @@ public final Queue createQueue(CreateQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
@@ -592,8 +643,11 @@ public final UnaryCallable createQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   Queue queue = Queue.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -632,8 +686,11 @@ public final Queue updateQueue(Queue queue, FieldMask updateMask) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   UpdateQueueRequest request =
    *       UpdateQueueRequest.newBuilder()
@@ -667,8 +724,11 @@ public final Queue updateQueue(UpdateQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   UpdateQueueRequest request =
    *       UpdateQueueRequest.newBuilder()
@@ -700,8 +760,11 @@ public final UnaryCallable updateQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   cloudTasksClient.deleteQueue(name);
@@ -733,8 +796,11 @@ public final void deleteQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   cloudTasksClient.deleteQueue(name);
@@ -765,8 +831,11 @@ public final void deleteQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteQueueRequest request =
    *       DeleteQueueRequest.newBuilder()
@@ -798,8 +867,11 @@ public final void deleteQueue(DeleteQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteQueueRequest request =
    *       DeleteQueueRequest.newBuilder()
@@ -827,8 +899,11 @@ public final UnaryCallable deleteQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.purgeQueue(name);
@@ -857,8 +932,11 @@ public final Queue purgeQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.purgeQueue(name);
@@ -886,8 +964,11 @@ public final Queue purgeQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PurgeQueueRequest request =
    *       PurgeQueueRequest.newBuilder()
@@ -916,8 +997,11 @@ public final Queue purgeQueue(PurgeQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PurgeQueueRequest request =
    *       PurgeQueueRequest.newBuilder()
@@ -946,8 +1030,11 @@ public final UnaryCallable purgeQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.pauseQueue(name);
@@ -977,8 +1064,11 @@ public final Queue pauseQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.pauseQueue(name);
@@ -1007,8 +1097,11 @@ public final Queue pauseQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PauseQueueRequest request =
    *       PauseQueueRequest.newBuilder()
@@ -1038,8 +1131,11 @@ public final Queue pauseQueue(PauseQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PauseQueueRequest request =
    *       PauseQueueRequest.newBuilder()
@@ -1072,8 +1168,11 @@ public final UnaryCallable pauseQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.resumeQueue(name);
@@ -1107,8 +1206,11 @@ public final Queue resumeQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.resumeQueue(name);
@@ -1141,8 +1243,11 @@ public final Queue resumeQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResumeQueueRequest request =
    *       ResumeQueueRequest.newBuilder()
@@ -1176,8 +1281,11 @@ public final Queue resumeQueue(ResumeQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResumeQueueRequest request =
    *       ResumeQueueRequest.newBuilder()
@@ -1208,8 +1316,11 @@ public final UnaryCallable resumeQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
@@ -1243,8 +1354,11 @@ public final Policy getIamPolicy(ResourceName resource) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
@@ -1275,8 +1389,11 @@ public final Policy getIamPolicy(String resource) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1313,8 +1430,11 @@ public final Policy getIamPolicy(QueueName queueName) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1349,8 +1469,11 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy policy = Policy.newBuilder().build();
@@ -1392,8 +1515,11 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy policy = Policy.newBuilder().build();
@@ -1432,8 +1558,11 @@ public final Policy setIamPolicy(String resource, Policy policy) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -1474,8 +1603,11 @@ public final Policy setIamPolicy(QueueName queue, Policy policy) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -1506,8 +1638,11 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   List permissions = new ArrayList<>();
@@ -1546,8 +1681,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   List permissions = new ArrayList<>();
@@ -1586,8 +1724,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1623,8 +1764,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1657,8 +1801,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
@@ -1691,8 +1838,11 @@ public final ListTasksPagedResponse listTasks(QueueName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
@@ -1724,8 +1874,11 @@ public final ListTasksPagedResponse listTasks(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1760,8 +1913,11 @@ public final ListTasksPagedResponse listTasks(ListTasksRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1795,8 +1951,11 @@ public final UnaryCallable listTasksPa
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1830,8 +1989,11 @@ public final UnaryCallable listTasksCallabl
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Task response = cloudTasksClient.getTask(name);
@@ -1855,8 +2017,11 @@ public final Task getTask(TaskName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Task response = cloudTasksClient.getTask(name);
@@ -1879,8 +2044,11 @@ public final Task getTask(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetTaskRequest request =
    *       GetTaskRequest.newBuilder()
@@ -1904,8 +2072,11 @@ public final Task getTask(GetTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetTaskRequest request =
    *       GetTaskRequest.newBuilder()
@@ -1934,8 +2105,11 @@ public final UnaryCallable getTaskCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Task task = Task.newBuilder().build();
@@ -1993,8 +2167,11 @@ public final Task createTask(QueueName parent, Task task) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Task task = Task.newBuilder().build();
@@ -2049,8 +2226,11 @@ public final Task createTask(String parent, Task task) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
@@ -2081,8 +2261,11 @@ public final Task createTask(CreateTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
@@ -2109,8 +2292,11 @@ public final UnaryCallable createTaskCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   cloudTasksClient.deleteTask(name);
@@ -2137,8 +2323,11 @@ public final void deleteTask(TaskName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   cloudTasksClient.deleteTask(name);
@@ -2164,8 +2353,11 @@ public final void deleteTask(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteTaskRequest request =
    *       DeleteTaskRequest.newBuilder()
@@ -2192,8 +2384,11 @@ public final void deleteTask(DeleteTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteTaskRequest request =
    *       DeleteTaskRequest.newBuilder()
@@ -2238,8 +2433,11 @@ public final UnaryCallable deleteTaskCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Task response = cloudTasksClient.runTask(name);
@@ -2285,8 +2483,11 @@ public final Task runTask(TaskName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Task response = cloudTasksClient.runTask(name);
@@ -2331,8 +2532,11 @@ public final Task runTask(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   RunTaskRequest request =
    *       RunTaskRequest.newBuilder()
@@ -2378,8 +2582,11 @@ public final Task runTask(RunTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   RunTaskRequest request =
    *       RunTaskRequest.newBuilder()
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java
index 027a308a..0faadd46 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java
@@ -60,16 +60,16 @@
  * 

For example, to set the total timeout of getQueue to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder();
  * cloudTasksSettingsBuilder
  *     .getQueueSettings()
  *     .setRetrySettings(
- *         cloudTasksSettingsBuilder
- *             .getQueueSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * CloudTasksSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/package-info.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/package-info.java
index b0103080..2db7d5c3 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/package-info.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/package-info.java
@@ -25,8 +25,11 @@
  * 

Sample for CloudTasksClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
  *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
  *   Queue response = cloudTasksClient.getQueue(name);
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java
index f932d379..8400acde 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java
@@ -94,16 +94,16 @@
  * 

For example, to set the total timeout of getQueue to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder();
  * cloudTasksSettingsBuilder
  *     .getQueueSettings()
  *     .setRetrySettings(
- *         cloudTasksSettingsBuilder
- *             .getQueueSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * CloudTasksStubSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksStub.java
index 9b9fdbd6..19987639 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksStub.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksStub.java
@@ -168,7 +168,8 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                         return fields;
                       })
                   .setRequestBodyExtractor(
-                      request -> ProtoRestSerializer.create().toBody("queue", request.getQueue()))
+                      request ->
+                          ProtoRestSerializer.create().toBody("queue", request.getQueue(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -202,7 +203,8 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                         return fields;
                       })
                   .setRequestBodyExtractor(
-                      request -> ProtoRestSerializer.create().toBody("queue", request.getQueue()))
+                      request ->
+                          ProtoRestSerializer.create().toBody("queue", request.getQueue(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -269,7 +271,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -304,7 +306,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -339,7 +341,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -375,7 +377,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -411,7 +413,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -447,7 +449,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -552,7 +554,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearParent().build()))
+                              .toBody("*", request.toBuilder().clearParent().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -619,7 +621,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java
index 4e05d8c0..f097d66a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     CloudTasksSettings cloudTasksSettings =
         CloudTasksSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java
index 38514912..a5da0873 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider1() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     CloudTasksSettings cloudTasksSettings =
         CloudTasksSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetEndpoint.java
index 9da8f9ea..902d57d1 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     CloudTasksSettings cloudTasksSettings =
         CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build();
     CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/AsyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/AsyncCreateQueue.java
index 1b2db3dd..e1dd8293 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/AsyncCreateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/AsyncCreateQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       CreateQueueRequest request =
           CreateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueue.java
index 11135004..24ac21c7 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       CreateQueueRequest request =
           CreateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java
index 9c9fcc92..3dbc0328 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateQueueLocationnameQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       Queue queue = Queue.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java
index 721ffc9b..76afd65b 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateQueueStringQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       Queue queue = Queue.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/AsyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/AsyncCreateTask.java
index ccf2a479..34daa0ac 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/AsyncCreateTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/AsyncCreateTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       CreateTaskRequest request =
           CreateTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTask.java
index df58baee..73960c2b 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       CreateTaskRequest request =
           CreateTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java
index a84eb460..1baa3d2b 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateTaskQueuenameTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Task task = Task.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java
index 0860e295..560ab33b 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateTaskStringTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Task task = Task.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java
index 9762594b..ee8d9eae 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       DeleteQueueRequest request =
           DeleteQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueue.java
index da63071b..3f370b97 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       DeleteQueueRequest request =
           DeleteQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java
index 694e60aa..960c9456 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       cloudTasksClient.deleteQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java
index 8c7e82cf..b963df07 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       cloudTasksClient.deleteQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/AsyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/AsyncDeleteTask.java
index 632b3fab..e259fe10 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/AsyncDeleteTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/AsyncDeleteTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       DeleteTaskRequest request =
           DeleteTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTask.java
index fd2d3a75..bf4c5a4a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       DeleteTaskRequest request =
           DeleteTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskString.java
index 5871611c..aeae8ccf 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteTaskString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       cloudTasksClient.deleteTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java
index 189c71cf..092b0ef7 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteTaskTaskname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       cloudTasksClient.deleteTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java
index 60880005..454f77ad 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       GetIamPolicyRequest request =
           GetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java
index 493482e2..95f353d0 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       GetIamPolicyRequest request =
           GetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java
index d463ab2e..949f438f 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetIamPolicyResourcename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Policy response = cloudTasksClient.getIamPolicy(resource);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java
index 979f61bc..58a98b0d 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetIamPolicyString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Policy response = cloudTasksClient.getIamPolicy(resource);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/AsyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/AsyncGetQueue.java
index 0f432e89..950fc984 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/AsyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/AsyncGetQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       GetQueueRequest request =
           GetQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueue.java
index 0fc5586a..d8c186fb 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       GetQueueRequest request =
           GetQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java
index d080d45b..9963770c 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.getQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueString.java
index 9ae88742..22dda68e 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.getQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/AsyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/AsyncGetTask.java
index ffc0e660..5e110eb6 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/AsyncGetTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/AsyncGetTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       GetTaskRequest request =
           GetTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTask.java
index 1d470d42..b99a00ff 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       GetTaskRequest request =
           GetTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskString.java
index d571b3ec..a1c9844c 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetTaskString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       Task response = cloudTasksClient.getTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskTaskname.java
index 7047deb0..fc687b2c 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskTaskname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskTaskname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetTaskTaskname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       Task response = cloudTasksClient.getTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueues.java
index e35753f3..31f07c0a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueues.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueues.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListQueues() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ListQueuesRequest request =
           ListQueuesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java
index be973228..6370aba4 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListQueuesPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ListQueuesRequest request =
           ListQueuesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueues.java
index 2b403ced..2d843256 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueues.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueues.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListQueues() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ListQueuesRequest request =
           ListQueuesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java
index 306a8355..93944890 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListQueuesLocationname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesString.java
index 1ce53a05..21b0c380 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListQueuesString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasks.java
index f2b39a83..40c31e55 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasks.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasks.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListTasks() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ListTasksRequest request =
           ListTasksRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasksPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasksPaged.java
index 95d3b4cb..518df7f0 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasksPaged.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasksPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListTasksPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ListTasksRequest request =
           ListTasksRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasks.java
index 359dd06a..2972c9ea 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasks.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasks.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListTasks() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ListTasksRequest request =
           ListTasksRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksQueuename.java
index 1c6ef375..a5c8d8cc 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListTasksQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksString.java
index ce21b319..c3338b8c 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListTasksString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/AsyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/AsyncPauseQueue.java
index ef03e3f9..6f44153c 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/AsyncPauseQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/AsyncPauseQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncPauseQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       PauseQueueRequest request =
           PauseQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueue.java
index a3186b77..3ca80bf4 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPauseQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       PauseQueueRequest request =
           PauseQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java
index 218a3d59..ebccf9d4 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPauseQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.pauseQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueString.java
index 0bfa1089..caba7348 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPauseQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.pauseQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java
index 0f9e2f86..23616da3 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncPurgeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       PurgeQueueRequest request =
           PurgeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueue.java
index a16236a5..30356ca7 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPurgeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       PurgeQueueRequest request =
           PurgeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java
index 3c864eaa..1996b5be 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPurgeQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.purgeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java
index 84007dc3..7161a99a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPurgeQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.purgeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/AsyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/AsyncResumeQueue.java
index 97db36cf..c63525a9 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/AsyncResumeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/AsyncResumeQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncResumeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ResumeQueueRequest request =
           ResumeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueue.java
index acdb269d..995c3435 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResumeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ResumeQueueRequest request =
           ResumeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java
index 5526a4e8..cbbc6986 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResumeQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.resumeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueString.java
index 0c29041f..f2c84a58 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResumeQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.resumeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/AsyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/AsyncRunTask.java
index cde80c1c..02ccf00e 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/AsyncRunTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/AsyncRunTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncRunTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       RunTaskRequest request =
           RunTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTask.java
index ea176710..5bce1fae 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRunTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       RunTaskRequest request =
           RunTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskString.java
index 11b7fef8..cbe96606 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRunTaskString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       Task response = cloudTasksClient.runTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskTaskname.java
index 6e70b7b7..3b22e063 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskTaskname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskTaskname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRunTaskTaskname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       Task response = cloudTasksClient.runTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java
index 5a0e28fa..5160c33a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       SetIamPolicyRequest request =
           SetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java
index 24d29467..789562e7 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       SetIamPolicyRequest request =
           SetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
index 33cf4945..3f24bd63 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetIamPolicyResourcenamePolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Policy policy = Policy.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
index b12bbe3f..b5badab6 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetIamPolicyStringPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Policy policy = Policy.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java
index 0568b639..c372a8d5 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncTestIamPermissions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       TestIamPermissionsRequest request =
           TestIamPermissionsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java
index f2f41700..34cf547a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncTestIamPermissions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       TestIamPermissionsRequest request =
           TestIamPermissionsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
index 38b1f4d1..c894eedc 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncTestIamPermissionsResourcenameListstring() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       List permissions = new ArrayList<>();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
index 381af0ce..1f757802 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncTestIamPermissionsStringListstring() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       List permissions = new ArrayList<>();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java
index 22494974..ceba1aa7 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       UpdateQueueRequest request =
           UpdateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueue.java
index 2038283e..85804280 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       UpdateQueueRequest request =
           UpdateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java
index 4788dbb3..c549376b 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateQueueQueueFieldmask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       Queue queue = Queue.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtaskssettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtaskssettings/getqueue/SyncGetQueue.java
index 0ffb477c..720367aa 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtaskssettings/getqueue/SyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtaskssettings/getqueue/SyncGetQueue.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder();
     cloudTasksSettingsBuilder
         .getQueueSettings()
         .setRetrySettings(
-            cloudTasksSettingsBuilder
-                .getQueueSettings()
-                .getRetrySettings()
-                .toBuilder()
+            cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     CloudTasksSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java
index 7f7bda8f..51115470 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder();
     cloudTasksSettingsBuilder
         .getQueueSettings()
         .setRetrySettings(
-            cloudTasksSettingsBuilder
-                .getQueueSettings()
-                .getRetrySettings()
-                .toBuilder()
+            cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     CloudTasksStubSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/AsyncAcknowledgeTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/AsyncAcknowledgeTask.java
index ab1afa05..fae03a61 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/AsyncAcknowledgeTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/AsyncAcknowledgeTask.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncAcknowledgeTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       AcknowledgeTaskRequest request =
           AcknowledgeTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTask.java
index 3baa6f7e..8302c280 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAcknowledgeTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       AcknowledgeTaskRequest request =
           AcknowledgeTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskStringTimestamp.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskStringTimestamp.java
index 92f2d61f..0a89d220 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskStringTimestamp.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskStringTimestamp.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAcknowledgeTaskStringTimestamp() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       Timestamp scheduleTime = Timestamp.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskTasknameTimestamp.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskTasknameTimestamp.java
index 762125bd..82e330c2 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskTasknameTimestamp.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskTasknameTimestamp.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAcknowledgeTaskTasknameTimestamp() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       Timestamp scheduleTime = Timestamp.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/AsyncCancelLease.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/AsyncCancelLease.java
index da94e453..e618e1f0 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/AsyncCancelLease.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/AsyncCancelLease.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCancelLease() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       CancelLeaseRequest request =
           CancelLeaseRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLease.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLease.java
index 5ed165c2..9323041b 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLease.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLease.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCancelLease() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       CancelLeaseRequest request =
           CancelLeaseRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseStringTimestamp.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseStringTimestamp.java
index d4f1f1c4..b28a6da1 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseStringTimestamp.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseStringTimestamp.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCancelLeaseStringTimestamp() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       Timestamp scheduleTime = Timestamp.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseTasknameTimestamp.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseTasknameTimestamp.java
index 059088a1..8bf8ed7c 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseTasknameTimestamp.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseTasknameTimestamp.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCancelLeaseTasknameTimestamp() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       Timestamp scheduleTime = Timestamp.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java
index dbe6a904..9adafb3a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     CloudTasksSettings cloudTasksSettings =
         CloudTasksSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java
index abb4e687..2970d6f9 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider1() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     CloudTasksSettings cloudTasksSettings =
         CloudTasksSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetEndpoint.java
index 4e47cdf5..0e87ed2e 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     CloudTasksSettings cloudTasksSettings =
         CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build();
     CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/AsyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/AsyncCreateQueue.java
index e9bfc5f9..107fdbc4 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/AsyncCreateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/AsyncCreateQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       CreateQueueRequest request =
           CreateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueue.java
index e34e8208..a2b1e635 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       CreateQueueRequest request =
           CreateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java
index b2327f59..6de0aff7 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateQueueLocationnameQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       Queue queue = Queue.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java
index 2616093d..56ce4232 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateQueueStringQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       Queue queue = Queue.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/AsyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/AsyncCreateTask.java
index e1b299a5..30be5be4 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/AsyncCreateTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/AsyncCreateTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       CreateTaskRequest request =
           CreateTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTask.java
index 390a437a..99aadb75 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       CreateTaskRequest request =
           CreateTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java
index 62a070ae..fbe38473 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateTaskQueuenameTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Task task = Task.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java
index 73d350ce..0cac0e33 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateTaskStringTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Task task = Task.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java
index af835c27..29d3c2cc 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       DeleteQueueRequest request =
           DeleteQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueue.java
index 32678f61..de067ffd 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       DeleteQueueRequest request =
           DeleteQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java
index 951b6511..5d3028aa 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       cloudTasksClient.deleteQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java
index 43f176ba..ea5f346e 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       cloudTasksClient.deleteQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/AsyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/AsyncDeleteTask.java
index f9274df2..e256d5aa 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/AsyncDeleteTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/AsyncDeleteTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       DeleteTaskRequest request =
           DeleteTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTask.java
index 36fe4ad3..856a0e16 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       DeleteTaskRequest request =
           DeleteTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskString.java
index 0294a9a6..3e654f62 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteTaskString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       cloudTasksClient.deleteTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java
index 1f6b15ae..3d12a3b0 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteTaskTaskname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       cloudTasksClient.deleteTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java
index d0f68b55..25212550 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       GetIamPolicyRequest request =
           GetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java
index ee3f1c67..47d0afd0 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       GetIamPolicyRequest request =
           GetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java
index a8002081..b773f9ad 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetIamPolicyResourcename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Policy response = cloudTasksClient.getIamPolicy(resource);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java
index 6edf8501..664e3ef2 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetIamPolicyString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Policy response = cloudTasksClient.getIamPolicy(resource);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/AsyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/AsyncGetQueue.java
index ae934132..3f91261c 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/AsyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/AsyncGetQueue.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       GetQueueRequest request =
           GetQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueue.java
index 58d8f86e..5ffdcd88 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       GetQueueRequest request =
           GetQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java
index 06e7c5b8..8e26d72c 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.getQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueString.java
index 8c83dbd4..644874bb 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.getQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/AsyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/AsyncGetTask.java
index 64cb85ce..075be549 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/AsyncGetTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/AsyncGetTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       GetTaskRequest request =
           GetTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTask.java
index f7ae4a58..f87863a9 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       GetTaskRequest request =
           GetTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskString.java
index 36fb1cf3..8937a692 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetTaskString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       Task response = cloudTasksClient.getTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskTaskname.java
index 517259c6..7defa994 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskTaskname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskTaskname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetTaskTaskname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       Task response = cloudTasksClient.getTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/AsyncLeaseTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/AsyncLeaseTasks.java
index a712847f..6e0a7d7f 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/AsyncLeaseTasks.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/AsyncLeaseTasks.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncLeaseTasks() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       LeaseTasksRequest request =
           LeaseTasksRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasks.java
index 6f6a1b5e..f080538a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasks.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasks.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncLeaseTasks() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       LeaseTasksRequest request =
           LeaseTasksRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksQueuenameDuration.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksQueuenameDuration.java
index 2a935d86..e54769b0 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksQueuenameDuration.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksQueuenameDuration.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncLeaseTasksQueuenameDuration() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Duration leaseDuration = Duration.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksStringDuration.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksStringDuration.java
index a14af642..66b6bf63 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksStringDuration.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksStringDuration.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncLeaseTasksStringDuration() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Duration leaseDuration = Duration.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueues.java
index 0bd56057..0fceeb02 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueues.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueues.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListQueues() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ListQueuesRequest request =
           ListQueuesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java
index a7ab7e1a..de86a5ed 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListQueuesPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ListQueuesRequest request =
           ListQueuesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueues.java
index 1572c738..a4fa0906 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueues.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueues.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListQueues() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ListQueuesRequest request =
           ListQueuesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java
index b997ba49..7bf61591 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListQueuesLocationname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesString.java
index ad6691a3..bacae6ba 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListQueuesString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasks.java
index 894fc4df..79898982 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasks.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasks.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListTasks() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ListTasksRequest request =
           ListTasksRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasksPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasksPaged.java
index b8612e2b..2cd906df 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasksPaged.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasksPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListTasksPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ListTasksRequest request =
           ListTasksRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasks.java
index 558e80a5..e41dcb39 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasks.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasks.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListTasks() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ListTasksRequest request =
           ListTasksRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksQueuename.java
index 6877cc75..befebcdc 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListTasksQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksString.java
index 48d68f82..299ff85a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListTasksString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/AsyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/AsyncPauseQueue.java
index 8d0f9560..047044b2 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/AsyncPauseQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/AsyncPauseQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncPauseQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       PauseQueueRequest request =
           PauseQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueue.java
index 7fa8ca8f..7615206a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPauseQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       PauseQueueRequest request =
           PauseQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java
index 86f55e8d..b8887ed3 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPauseQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.pauseQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueString.java
index b821a4d6..687bbde3 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPauseQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.pauseQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java
index 515451a9..1f2a71bb 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncPurgeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       PurgeQueueRequest request =
           PurgeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueue.java
index 2a7019c1..504ea5b1 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPurgeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       PurgeQueueRequest request =
           PurgeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java
index 66b1e90a..7bc29f3e 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPurgeQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.purgeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java
index 9f932af0..53c1b0ca 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPurgeQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.purgeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/AsyncRenewLease.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/AsyncRenewLease.java
index 78690e08..7b93b15d 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/AsyncRenewLease.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/AsyncRenewLease.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncRenewLease() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       RenewLeaseRequest request =
           RenewLeaseRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLease.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLease.java
index 3645572a..3493cea1 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLease.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLease.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRenewLease() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       RenewLeaseRequest request =
           RenewLeaseRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseStringTimestampDuration.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseStringTimestampDuration.java
index fcbc0c02..d52eeb68 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseStringTimestampDuration.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseStringTimestampDuration.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRenewLeaseStringTimestampDuration() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       Timestamp scheduleTime = Timestamp.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseTasknameTimestampDuration.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseTasknameTimestampDuration.java
index 9811a9ea..9e553755 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseTasknameTimestampDuration.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseTasknameTimestampDuration.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRenewLeaseTasknameTimestampDuration() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       Timestamp scheduleTime = Timestamp.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/AsyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/AsyncResumeQueue.java
index 14c6db59..a929b67e 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/AsyncResumeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/AsyncResumeQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncResumeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ResumeQueueRequest request =
           ResumeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueue.java
index 998644e5..44b55199 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResumeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ResumeQueueRequest request =
           ResumeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java
index 165e4017..c868c197 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResumeQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.resumeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueString.java
index 7e00ccec..c77f3a9d 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResumeQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.resumeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/AsyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/AsyncRunTask.java
index 7f31a5b6..927e71ab 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/AsyncRunTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/AsyncRunTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncRunTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       RunTaskRequest request =
           RunTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTask.java
index df779a69..83dfefb5 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRunTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       RunTaskRequest request =
           RunTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskString.java
index 64f30152..fb583c72 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRunTaskString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       Task response = cloudTasksClient.runTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskTaskname.java
index 68129a6b..54af3af7 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskTaskname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskTaskname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRunTaskTaskname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       Task response = cloudTasksClient.runTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java
index fd9321df..7564530c 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       SetIamPolicyRequest request =
           SetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java
index 9a844bdd..390e72fa 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       SetIamPolicyRequest request =
           SetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
index 0fb2c9c1..c6cb131d 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetIamPolicyResourcenamePolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Policy policy = Policy.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
index 76d66482..c68a4241 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetIamPolicyStringPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Policy policy = Policy.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java
index fb85bdfc..9a608bf9 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncTestIamPermissions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       TestIamPermissionsRequest request =
           TestIamPermissionsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java
index 23e0592e..6e0f87a3 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncTestIamPermissions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       TestIamPermissionsRequest request =
           TestIamPermissionsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
index a36a8bc6..4b471894 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncTestIamPermissionsResourcenameListstring() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       List permissions = new ArrayList<>();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
index ca23ca6f..7329dca4 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncTestIamPermissionsStringListstring() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       List permissions = new ArrayList<>();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java
index 55067342..52ecbe9a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       UpdateQueueRequest request =
           UpdateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueue.java
index efa507ef..a44f3ef3 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       UpdateQueueRequest request =
           UpdateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java
index e4c8bd50..935decf7 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateQueueQueueFieldmask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       Queue queue = Queue.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtaskssettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtaskssettings/getqueue/SyncGetQueue.java
index 1a243ce7..dc1c35da 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtaskssettings/getqueue/SyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtaskssettings/getqueue/SyncGetQueue.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder();
     cloudTasksSettingsBuilder
         .getQueueSettings()
         .setRetrySettings(
-            cloudTasksSettingsBuilder
-                .getQueueSettings()
-                .getRetrySettings()
-                .toBuilder()
+            cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     CloudTasksSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java
index 4b3c654b..b652c10f 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder();
     cloudTasksSettingsBuilder
         .getQueueSettings()
         .setRetrySettings(
-            cloudTasksSettingsBuilder
-                .getQueueSettings()
-                .getRetrySettings()
-                .toBuilder()
+            cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     CloudTasksStubSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java
index 312b4383..1d909e16 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     CloudTasksSettings cloudTasksSettings =
         CloudTasksSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java
index 85431e3e..e62a6f6c 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider1() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     CloudTasksSettings cloudTasksSettings =
         CloudTasksSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetEndpoint.java
index d434e08d..0e9f6c71 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     CloudTasksSettings cloudTasksSettings =
         CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build();
     CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/AsyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/AsyncCreateQueue.java
index ca315705..50a1886e 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/AsyncCreateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/AsyncCreateQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       CreateQueueRequest request =
           CreateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueue.java
index 4d711ceb..33dd1518 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       CreateQueueRequest request =
           CreateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java
index 47be9793..6a2a56b1 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateQueueLocationnameQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       Queue queue = Queue.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java
index 0d613bc1..6fe3b0b0 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateQueueStringQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       Queue queue = Queue.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/AsyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/AsyncCreateTask.java
index 6305ba81..5958a903 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/AsyncCreateTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/AsyncCreateTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       CreateTaskRequest request =
           CreateTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTask.java
index 9e6e187a..872a00f3 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       CreateTaskRequest request =
           CreateTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java
index bed8b931..a1ff8829 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateTaskQueuenameTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Task task = Task.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskStringTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskStringTask.java
index b61f91aa..9185d530 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskStringTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskStringTask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateTaskStringTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Task task = Task.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/AsyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/AsyncDeleteQueue.java
index 4f774533..709a14ba 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/AsyncDeleteQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/AsyncDeleteQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       DeleteQueueRequest request =
           DeleteQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueue.java
index 335fd8b9..cf2e3094 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       DeleteQueueRequest request =
           DeleteQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java
index b03ca7bd..2bbd1614 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       cloudTasksClient.deleteQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueString.java
index a67c1cd7..00515075 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       cloudTasksClient.deleteQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/AsyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/AsyncDeleteTask.java
index 4c3d45d8..bfb260f3 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/AsyncDeleteTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/AsyncDeleteTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       DeleteTaskRequest request =
           DeleteTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTask.java
index db5646ff..75695d39 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       DeleteTaskRequest request =
           DeleteTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskString.java
index 00c42019..5c5189a5 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteTaskString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       cloudTasksClient.deleteTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java
index 1c7f5c7f..be33b8c5 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteTaskTaskname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       cloudTasksClient.deleteTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java
index 049d109a..08e2d88e 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       GetIamPolicyRequest request =
           GetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java
index 3b6c93d6..cf2bb0c0 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       GetIamPolicyRequest request =
           GetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java
index 703b836f..5c68d929 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetIamPolicyResourcename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Policy response = cloudTasksClient.getIamPolicy(resource);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java
index 598be27c..3556a288 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetIamPolicyString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Policy response = cloudTasksClient.getIamPolicy(resource);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/AsyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/AsyncGetQueue.java
index beb5a0a3..8db66b4a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/AsyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/AsyncGetQueue.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       GetQueueRequest request =
           GetQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueue.java
index b7c62e66..da4fb946 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       GetQueueRequest request =
           GetQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueQueuename.java
index bbae5407..37596206 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.getQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueString.java
index c5df8b17..7b1903f5 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.getQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/AsyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/AsyncGetTask.java
index b3ed26be..11afd445 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/AsyncGetTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/AsyncGetTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       GetTaskRequest request =
           GetTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTask.java
index 836db60d..dc289704 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       GetTaskRequest request =
           GetTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskString.java
index 930c4419..07dba2e6 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetTaskString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       Task response = cloudTasksClient.getTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskTaskname.java
index 868eefab..1b067cf4 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskTaskname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskTaskname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetTaskTaskname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       Task response = cloudTasksClient.getTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueues.java
index 5ea1bbde..2bf90e0b 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueues.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueues.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListQueues() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ListQueuesRequest request =
           ListQueuesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueuesPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueuesPaged.java
index d679ca18..743ddbb6 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueuesPaged.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueuesPaged.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListQueuesPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ListQueuesRequest request =
           ListQueuesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueues.java
index d7c5a7d8..1c5049ac 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueues.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueues.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListQueues() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ListQueuesRequest request =
           ListQueuesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesLocationname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesLocationname.java
index 9f129089..383333be 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListQueuesLocationname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesString.java
index 60309c64..7fcf90f5 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListQueuesString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasks.java
index c19f0208..ceadcaaa 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasks.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasks.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListTasks() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ListTasksRequest request =
           ListTasksRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasksPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasksPaged.java
index 17711db6..a789178e 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasksPaged.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasksPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListTasksPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ListTasksRequest request =
           ListTasksRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasks.java
index 046d9477..fa50cc55 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasks.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasks.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListTasks() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ListTasksRequest request =
           ListTasksRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksQueuename.java
index f67e5d81..9ac21fab 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListTasksQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksString.java
index e8fcd18a..5b41d5ad 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListTasksString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/AsyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/AsyncPauseQueue.java
index 761b5166..1851741d 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/AsyncPauseQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/AsyncPauseQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncPauseQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       PauseQueueRequest request =
           PauseQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueue.java
index 93394574..faac88d5 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPauseQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       PauseQueueRequest request =
           PauseQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java
index ed9e59e2..9c8ea5df 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPauseQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.pauseQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueString.java
index 25a0cc0a..c430267d 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPauseQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.pauseQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/AsyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/AsyncPurgeQueue.java
index b7d0108d..55d7ceed 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/AsyncPurgeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/AsyncPurgeQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncPurgeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       PurgeQueueRequest request =
           PurgeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueue.java
index f555c736..a361aa5f 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPurgeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       PurgeQueueRequest request =
           PurgeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java
index 9a6f7d07..8940cfb0 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPurgeQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.purgeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueString.java
index ba833f52..7133a864 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPurgeQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.purgeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/AsyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/AsyncResumeQueue.java
index 8a522847..ea380afc 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/AsyncResumeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/AsyncResumeQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncResumeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ResumeQueueRequest request =
           ResumeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueue.java
index 50348c46..127b49fd 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResumeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ResumeQueueRequest request =
           ResumeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java
index df75ed99..a192c962 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResumeQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.resumeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueString.java
index bdfb0c01..01b4cb82 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResumeQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.resumeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/AsyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/AsyncRunTask.java
index 8a392118..5f9e2e5e 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/AsyncRunTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/AsyncRunTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncRunTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       RunTaskRequest request =
           RunTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTask.java
index 8b73a70b..e12f1c3c 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRunTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       RunTaskRequest request =
           RunTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskString.java
index d5da488b..64fb38ac 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRunTaskString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       Task response = cloudTasksClient.runTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskTaskname.java
index edd2d333..09d2ea56 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskTaskname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskTaskname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRunTaskTaskname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       Task response = cloudTasksClient.runTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java
index f1e7cd6e..c23eb249 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       SetIamPolicyRequest request =
           SetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java
index 33d53f0f..f0ddfaa5 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       SetIamPolicyRequest request =
           SetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
index 1b0b0d92..c2e17cd7 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetIamPolicyResourcenamePolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Policy policy = Policy.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
index 2cbfddff..a3d1ca90 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetIamPolicyStringPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Policy policy = Policy.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java
index 4bece0a9..34b12fad 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncTestIamPermissions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       TestIamPermissionsRequest request =
           TestIamPermissionsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java
index 9b6ec431..d55ce480 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncTestIamPermissions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       TestIamPermissionsRequest request =
           TestIamPermissionsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
index b92bcce7..d9ec06c3 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncTestIamPermissionsResourcenameListstring() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       List permissions = new ArrayList<>();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
index b144ff3b..a59396ab 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncTestIamPermissionsStringListstring() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       List permissions = new ArrayList<>();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/AsyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/AsyncUpdateQueue.java
index 310ec8a0..2d705109 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/AsyncUpdateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/AsyncUpdateQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       UpdateQueueRequest request =
           UpdateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueue.java
index b9b4415c..86760baa 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       UpdateQueueRequest request =
           UpdateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java
index 077ea6dc..a971e25a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateQueueQueueFieldmask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
       Queue queue = Queue.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtaskssettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtaskssettings/getqueue/SyncGetQueue.java
index 3475de29..3b35dfe1 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtaskssettings/getqueue/SyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtaskssettings/getqueue/SyncGetQueue.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder();
     cloudTasksSettingsBuilder
         .getQueueSettings()
         .setRetrySettings(
-            cloudTasksSettingsBuilder
-                .getQueueSettings()
-                .getRetrySettings()
-                .toBuilder()
+            cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     CloudTasksSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java
index 60609678..89225654 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder();
     cloudTasksSettingsBuilder
         .getQueueSettings()
         .setRetrySettings(
-            cloudTasksSettingsBuilder
-                .getQueueSettings()
-                .getRetrySettings()
-                .toBuilder()
+            cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     CloudTasksStubSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();

From 991d232f72037f540c9f02aab619ac076d77073e Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Sat, 10 Sep 2022 02:08:31 +0000
Subject: [PATCH 3/5] chore: Generated snippets should not be owned by samples
 reviewers (#1575) (#750)

Source-Link: https://github.com/googleapis/synthtool/commit/2e9ac19d5b8181af77cdc5337cf922517813cc49
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93
---
 .github/.OwlBot.lock.yaml | 3 +--
 .github/CODEOWNERS        | 3 +++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index a20fd630..62592923 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,5 +13,4 @@
 # limitations under the License.
 docker:
   image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
-  digest: sha256:7a9a7eb50ca2af5bfffab3abd2f38d408735c990a74bacf9b7fde2af0a086a0b
-# created: 2022-08-01T15:27:14.757266067Z
+  digest: sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 1578dc2f..5232f38f 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -10,3 +10,6 @@
 
 # The java-samples-reviewers team is the default owner for samples changes
 samples/**/*.java       @googleapis/java-samples-reviewers
+
+# Generated snippets should not be owned by samples reviewers
+samples/snippets/generated/       @googleapis/yoshi-java

From 455a7a722c4b055c756877cebe6960a3569ff1f7 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate 
Date: Thu, 15 Sep 2022 15:40:21 +0200
Subject: [PATCH 4/5] deps: update dependency
 com.google.cloud:google-cloud-shared-dependencies to v3.0.3 (#751)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.2` -> `3.0.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/compatibility-slim/3.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/confidence-slim/3.0.2)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

googleapis/java-shared-dependencies ### [`v3.0.3`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​303-httpsgithubcomgoogleapisjava-shared-dependenciescomparev302v303-2022-09-14) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.2...v3.0.3) ##### Dependencies - Google-cloud-core 2.8.12 ([#​799](https://togithub.com/googleapis/java-shared-dependencies/issues/799)) ([1b3db8d](https://togithub.com/googleapis/java-shared-dependencies/commit/1b3db8d1e17c49ebae79fc96164fa9058e1df6e3)) - Moving gson to first-party-dependencies ([#​800](https://togithub.com/googleapis/java-shared-dependencies/issues/800)) ([a41fcc1](https://togithub.com/googleapis/java-shared-dependencies/commit/a41fcc11d32e02e5af2837561792e3919f6d4b3f)) - Update dependency com.google.protobuf:protobuf-bom to v3.21.6 ([#​797](https://togithub.com/googleapis/java-shared-dependencies/issues/797)) ([bc5fdc9](https://togithub.com/googleapis/java-shared-dependencies/commit/bc5fdc9b3af7973c28f063a9ac156fe2af562814)) - Update gax.version to v2.19.1 ([#​798](https://togithub.com/googleapis/java-shared-dependencies/issues/798)) ([84e5487](https://togithub.com/googleapis/java-shared-dependencies/commit/84e5487b2e3dce4bb60badecebde788c3cb702b8)) - Update google.core.version to v2.8.11 ([#​793](https://togithub.com/googleapis/java-shared-dependencies/issues/793)) ([63c1297](https://togithub.com/googleapis/java-shared-dependencies/commit/63c129722aa0b821031ff5b4c11004adf7b12044))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e0956236..9e8c5eb7 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.2 + 3.0.3 pom import From 10778d8b4be72e1b7e1a3ed5be605a6a26ce6004 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 15 Sep 2022 21:44:35 -0400 Subject: [PATCH 5/5] chore(main): release 2.3.8 (#752) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65d7a9f1..296352b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.3.8](https://github.com/googleapis/java-tasks/compare/v2.3.7...v2.3.8) (2022-09-15) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#751](https://github.com/googleapis/java-tasks/issues/751)) ([455a7a7](https://github.com/googleapis/java-tasks/commit/455a7a722c4b055c756877cebe6960a3569ff1f7)) + ## [2.3.7](https://github.com/googleapis/java-tasks/compare/v2.3.6...v2.3.7) (2022-09-09) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index df260689..be80cbbc 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.8-SNAPSHOT + 2.3.8 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.8-SNAPSHOT + 2.3.8 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.8-SNAPSHOT + 0.93.8 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.8-SNAPSHOT + 0.93.8 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.8-SNAPSHOT + 2.3.8 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.8-SNAPSHOT + 0.93.8 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.8-SNAPSHOT + 0.93.8 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.8-SNAPSHOT + 2.3.8 diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 2c5ee640..90e08873 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.8-SNAPSHOT + 2.3.8 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.8-SNAPSHOT + 2.3.8 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 2cb26075..998bd95d 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.8-SNAPSHOT + 2.3.8 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.8-SNAPSHOT + 2.3.8 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 202a1d16..d5c761d0 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.8-SNAPSHOT + 0.93.8 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.8-SNAPSHOT + 2.3.8 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 9b310e61..28cc243c 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.8-SNAPSHOT + 0.93.8 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.8-SNAPSHOT + 2.3.8 diff --git a/pom.xml b/pom.xml index 9e8c5eb7..0fd90b75 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.8-SNAPSHOT + 2.3.8 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.8-SNAPSHOT + 0.93.8 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.8-SNAPSHOT + 0.93.8 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.8-SNAPSHOT + 2.3.8 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.8-SNAPSHOT + 0.93.8 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.8-SNAPSHOT + 0.93.8 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.8-SNAPSHOT + 2.3.8 com.google.cloud google-cloud-tasks - 2.3.8-SNAPSHOT + 2.3.8 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index eaf0dfe1..6e46ca0d 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.8-SNAPSHOT + 2.3.8 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.8-SNAPSHOT + 2.3.8 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 1beae1c1..fb0542e9 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.8-SNAPSHOT + 0.93.8 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.8-SNAPSHOT + 2.3.8 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 4f5d5339..b597a30b 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.8-SNAPSHOT + 0.93.8 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.8-SNAPSHOT + 2.3.8 diff --git a/versions.txt b/versions.txt index 207e8c35..d6993033 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.7:2.3.8-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.93.7:0.93.8-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.93.7:0.93.8-SNAPSHOT -grpc-google-cloud-tasks-v2:2.3.7:2.3.8-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.93.7:0.93.8-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.93.7:0.93.8-SNAPSHOT -proto-google-cloud-tasks-v2:2.3.7:2.3.8-SNAPSHOT +google-cloud-tasks:2.3.8:2.3.8 +grpc-google-cloud-tasks-v2beta3:0.93.8:0.93.8 +grpc-google-cloud-tasks-v2beta2:0.93.8:0.93.8 +grpc-google-cloud-tasks-v2:2.3.8:2.3.8 +proto-google-cloud-tasks-v2beta3:0.93.8:0.93.8 +proto-google-cloud-tasks-v2beta2:0.93.8:0.93.8 +proto-google-cloud-tasks-v2:2.3.8:2.3.8