diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index de9173d9..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:d4b80feffe1579818cdc39466152e9de95789a193408506cd4a1ffbe8804dc00 -# created: 2022-07-13T13:53:17.676447481Z + digest: sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93 diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 30fdb7b9..db2d8ad1 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -8,3 +8,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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 8be5eb72..e7dd5d7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.3.4](https://github.com/googleapis/java-iot/compare/v2.3.3...v2.3.4) (2022-09-15) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#769](https://github.com/googleapis/java-iot/issues/769)) ([e6531c4](https://github.com/googleapis/java-iot/commit/e6531c424e06c0c867907011c5a312568f3d4c0f)) + ## [2.3.3](https://github.com/googleapis/java-iot/compare/v2.3.2...v2.3.3) (2022-09-09) diff --git a/README.md b/README.md index 5b73e23e..bb08961c 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-iot - 2.3.2 + 2.3.3 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-iot' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iot:2.3.2' +implementation 'com.google.cloud:google-cloud-iot:2.3.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.3.2" +libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.3.3" ``` ## Authentication diff --git a/google-cloud-iot-bom/pom.xml b/google-cloud-iot-bom/pom.xml index 387dc78d..f0bec03d 100644 --- a/google-cloud-iot-bom/pom.xml +++ b/google-cloud-iot-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-iot-bom - 2.3.3 + 2.3.4 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-iot - 2.3.3 + 2.3.4 com.google.api.grpc grpc-google-cloud-iot-v1 - 2.3.3 + 2.3.4 com.google.api.grpc proto-google-cloud-iot-v1 - 2.3.3 + 2.3.4 diff --git a/google-cloud-iot/pom.xml b/google-cloud-iot/pom.xml index cf2a5712..b0470e16 100644 --- a/google-cloud-iot/pom.xml +++ b/google-cloud-iot/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-iot - 2.3.3 + 2.3.4 jar Google Cloud IoT Core https://github.com/googleapis/java-iot @@ -11,7 +11,7 @@ com.google.cloud google-cloud-iot-parent - 2.3.3 + 2.3.4 google-cloud-iot diff --git a/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java index f1a877c1..839d3392 100644 --- a/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.java +++ b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerClient.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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   DeviceRegistry deviceRegistry = DeviceRegistry.newBuilder().build();
@@ -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
  * DeviceManagerSettings deviceManagerSettings =
  *     DeviceManagerSettings.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
  * DeviceManagerSettings deviceManagerSettings =
  *     DeviceManagerSettings.newBuilder().setEndpoint(myEndpoint).build();
  * DeviceManagerClient deviceManagerClient = DeviceManagerClient.create(deviceManagerSettings);
@@ -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
  * DeviceManagerSettings deviceManagerSettings =
  *     DeviceManagerSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -179,8 +191,11 @@ public DeviceManagerStub 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   DeviceRegistry deviceRegistry = DeviceRegistry.newBuilder().build();
@@ -211,8 +226,11 @@ public final DeviceRegistry createDeviceRegistry(
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   DeviceRegistry deviceRegistry = DeviceRegistry.newBuilder().build();
@@ -242,8 +260,11 @@ public final DeviceRegistry createDeviceRegistry(String parent, DeviceRegistry d
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   CreateDeviceRegistryRequest request =
    *       CreateDeviceRegistryRequest.newBuilder()
@@ -268,8 +289,11 @@ public final DeviceRegistry createDeviceRegistry(CreateDeviceRegistryRequest req
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   CreateDeviceRegistryRequest request =
    *       CreateDeviceRegistryRequest.newBuilder()
@@ -295,8 +319,11 @@ public final DeviceRegistry createDeviceRegistry(CreateDeviceRegistryRequest req
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   RegistryName name = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]");
    *   DeviceRegistry response = deviceManagerClient.getDeviceRegistry(name);
@@ -322,8 +349,11 @@ public final DeviceRegistry getDeviceRegistry(RegistryName 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   String name = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString();
    *   DeviceRegistry response = deviceManagerClient.getDeviceRegistry(name);
@@ -346,8 +376,11 @@ public final DeviceRegistry getDeviceRegistry(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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   GetDeviceRegistryRequest request =
    *       GetDeviceRegistryRequest.newBuilder()
@@ -371,8 +404,11 @@ public final DeviceRegistry getDeviceRegistry(GetDeviceRegistryRequest 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   GetDeviceRegistryRequest request =
    *       GetDeviceRegistryRequest.newBuilder()
@@ -396,8 +432,11 @@ public final UnaryCallable getDeviceRe
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   DeviceRegistry deviceRegistry = DeviceRegistry.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -432,8 +471,11 @@ public final DeviceRegistry updateDeviceRegistry(
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   UpdateDeviceRegistryRequest request =
    *       UpdateDeviceRegistryRequest.newBuilder()
@@ -458,8 +500,11 @@ public final DeviceRegistry updateDeviceRegistry(UpdateDeviceRegistryRequest req
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   UpdateDeviceRegistryRequest request =
    *       UpdateDeviceRegistryRequest.newBuilder()
@@ -485,8 +530,11 @@ public final DeviceRegistry updateDeviceRegistry(UpdateDeviceRegistryRequest req
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   RegistryName name = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]");
    *   deviceManagerClient.deleteDeviceRegistry(name);
@@ -512,8 +560,11 @@ public final void deleteDeviceRegistry(RegistryName 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   String name = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString();
    *   deviceManagerClient.deleteDeviceRegistry(name);
@@ -537,8 +588,11 @@ public final void deleteDeviceRegistry(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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   DeleteDeviceRegistryRequest request =
    *       DeleteDeviceRegistryRequest.newBuilder()
@@ -562,8 +616,11 @@ public final void deleteDeviceRegistry(DeleteDeviceRegistryRequest 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   DeleteDeviceRegistryRequest request =
    *       DeleteDeviceRegistryRequest.newBuilder()
@@ -587,8 +644,11 @@ public final UnaryCallable deleteDeviceRegis
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (DeviceRegistry element : deviceManagerClient.listDeviceRegistries(parent).iterateAll()) {
@@ -616,8 +676,11 @@ public final ListDeviceRegistriesPagedResponse listDeviceRegistries(LocationName
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (DeviceRegistry element : deviceManagerClient.listDeviceRegistries(parent).iterateAll()) {
@@ -643,8 +706,11 @@ public final ListDeviceRegistriesPagedResponse listDeviceRegistries(String paren
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   ListDeviceRegistriesRequest request =
    *       ListDeviceRegistriesRequest.newBuilder()
@@ -674,8 +740,11 @@ public final ListDeviceRegistriesPagedResponse listDeviceRegistries(
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   ListDeviceRegistriesRequest request =
    *       ListDeviceRegistriesRequest.newBuilder()
@@ -704,8 +773,11 @@ public final ListDeviceRegistriesPagedResponse listDeviceRegistries(
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   ListDeviceRegistriesRequest request =
    *       ListDeviceRegistriesRequest.newBuilder()
@@ -741,8 +813,11 @@ public final ListDeviceRegistriesPagedResponse listDeviceRegistries(
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   RegistryName parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]");
    *   Device device = Device.newBuilder().build();
@@ -772,8 +847,11 @@ public final Device createDevice(RegistryName parent, Device device) {
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   String parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString();
    *   Device device = Device.newBuilder().build();
@@ -800,8 +878,11 @@ public final Device createDevice(String parent, Device device) {
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   CreateDeviceRequest request =
    *       CreateDeviceRequest.newBuilder()
@@ -826,8 +907,11 @@ public final Device createDevice(CreateDeviceRequest 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   CreateDeviceRequest request =
    *       CreateDeviceRequest.newBuilder()
@@ -851,8 +935,11 @@ public final UnaryCallable createDeviceCallable() {
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]");
    *   Device response = deviceManagerClient.getDevice(name);
@@ -877,8 +964,11 @@ public final Device getDevice(DeviceName 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   String name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString();
    *   Device response = deviceManagerClient.getDevice(name);
@@ -902,8 +992,11 @@ public final Device getDevice(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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   GetDeviceRequest request =
    *       GetDeviceRequest.newBuilder()
@@ -929,8 +1022,11 @@ public final Device getDevice(GetDeviceRequest 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   GetDeviceRequest request =
    *       GetDeviceRequest.newBuilder()
@@ -955,8 +1051,11 @@ public final UnaryCallable getDeviceCallable() {
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   Device device = Device.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -986,8 +1085,11 @@ public final Device updateDevice(Device device, 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   UpdateDeviceRequest request =
    *       UpdateDeviceRequest.newBuilder()
@@ -1012,8 +1114,11 @@ public final Device updateDevice(UpdateDeviceRequest 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   UpdateDeviceRequest request =
    *       UpdateDeviceRequest.newBuilder()
@@ -1037,8 +1142,11 @@ public final UnaryCallable updateDeviceCallable() {
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]");
    *   deviceManagerClient.deleteDevice(name);
@@ -1063,8 +1171,11 @@ public final void deleteDevice(DeviceName 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   String name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString();
    *   deviceManagerClient.deleteDevice(name);
@@ -1088,8 +1199,11 @@ public final void deleteDevice(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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   DeleteDeviceRequest request =
    *       DeleteDeviceRequest.newBuilder()
@@ -1114,8 +1228,11 @@ public final void deleteDevice(DeleteDeviceRequest 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   DeleteDeviceRequest request =
    *       DeleteDeviceRequest.newBuilder()
@@ -1139,8 +1256,11 @@ public final UnaryCallable deleteDeviceCallable() {
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   RegistryName parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]");
    *   for (Device element : deviceManagerClient.listDevices(parent).iterateAll()) {
@@ -1168,8 +1288,11 @@ public final ListDevicesPagedResponse listDevices(RegistryName 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   String parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString();
    *   for (Device element : deviceManagerClient.listDevices(parent).iterateAll()) {
@@ -1194,8 +1317,11 @@ public final ListDevicesPagedResponse listDevices(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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   ListDevicesRequest request =
    *       ListDevicesRequest.newBuilder()
@@ -1227,8 +1353,11 @@ public final ListDevicesPagedResponse listDevices(ListDevicesRequest 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   ListDevicesRequest request =
    *       ListDevicesRequest.newBuilder()
@@ -1260,8 +1389,11 @@ public final ListDevicesPagedResponse listDevices(ListDevicesRequest 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   ListDevicesRequest request =
    *       ListDevicesRequest.newBuilder()
@@ -1300,8 +1432,11 @@ public final UnaryCallable listDevicesC
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]");
    *   ByteString binaryData = ByteString.EMPTY;
@@ -1332,8 +1467,11 @@ public final DeviceConfig modifyCloudToDeviceConfig(DeviceName name, ByteString
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   String name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString();
    *   ByteString binaryData = ByteString.EMPTY;
@@ -1364,8 +1502,11 @@ public final DeviceConfig modifyCloudToDeviceConfig(String name, ByteString bina
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   ModifyCloudToDeviceConfigRequest request =
    *       ModifyCloudToDeviceConfigRequest.newBuilder()
@@ -1393,8 +1534,11 @@ public final DeviceConfig modifyCloudToDeviceConfig(ModifyCloudToDeviceConfigReq
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   ModifyCloudToDeviceConfigRequest request =
    *       ModifyCloudToDeviceConfigRequest.newBuilder()
@@ -1423,8 +1567,11 @@ public final DeviceConfig modifyCloudToDeviceConfig(ModifyCloudToDeviceConfigReq
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]");
    *   ListDeviceConfigVersionsResponse response =
@@ -1453,8 +1600,11 @@ public final ListDeviceConfigVersionsResponse listDeviceConfigVersions(DeviceNam
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   String name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString();
    *   ListDeviceConfigVersionsResponse response =
@@ -1481,8 +1631,11 @@ public final ListDeviceConfigVersionsResponse listDeviceConfigVersions(String na
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   ListDeviceConfigVersionsRequest request =
    *       ListDeviceConfigVersionsRequest.newBuilder()
@@ -1511,8 +1664,11 @@ public final ListDeviceConfigVersionsResponse listDeviceConfigVersions(
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   ListDeviceConfigVersionsRequest request =
    *       ListDeviceConfigVersionsRequest.newBuilder()
@@ -1539,8 +1695,11 @@ public final ListDeviceConfigVersionsResponse listDeviceConfigVersions(
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]");
    *   ListDeviceStatesResponse response = deviceManagerClient.listDeviceStates(name);
@@ -1565,8 +1724,11 @@ public final ListDeviceStatesResponse listDeviceStates(DeviceName 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   String name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString();
    *   ListDeviceStatesResponse response = deviceManagerClient.listDeviceStates(name);
@@ -1590,8 +1752,11 @@ public final ListDeviceStatesResponse listDeviceStates(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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   ListDeviceStatesRequest request =
    *       ListDeviceStatesRequest.newBuilder()
@@ -1617,8 +1782,11 @@ public final ListDeviceStatesResponse listDeviceStates(ListDeviceStatesRequest r
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   ListDeviceStatesRequest request =
    *       ListDeviceStatesRequest.newBuilder()
@@ -1645,8 +1813,11 @@ public final ListDeviceStatesResponse listDeviceStates(ListDeviceStatesRequest r
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   ResourceName resource = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]");
    *   Policy policy = Policy.newBuilder().build();
@@ -1677,8 +1848,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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   String resource =
    *       DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString();
@@ -1707,8 +1881,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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -1734,8 +1911,11 @@ public final Policy setIamPolicy(SetIamPolicyRequest 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -1761,8 +1941,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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   ResourceName resource = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]");
    *   Policy response = deviceManagerClient.getIamPolicy(resource);
@@ -1789,8 +1972,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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   String resource =
    *       DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString();
@@ -1815,8 +2001,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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1842,8 +2031,11 @@ public final Policy getIamPolicy(GetIamPolicyRequest 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1868,8 +2060,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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   ResourceName resource = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]");
    *   List permissions = new ArrayList<>();
@@ -1903,8 +2098,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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   String resource =
    *       DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString();
@@ -1939,8 +2137,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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1966,8 +2167,11 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -2002,8 +2206,11 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]");
    *   ByteString binaryData = ByteString.EMPTY;
@@ -2044,8 +2251,11 @@ public final SendCommandToDeviceResponse sendCommandToDevice(
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   String name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString();
    *   ByteString binaryData = ByteString.EMPTY;
@@ -2082,8 +2292,11 @@ public final SendCommandToDeviceResponse sendCommandToDevice(String name, ByteSt
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]");
    *   ByteString binaryData = ByteString.EMPTY;
@@ -2131,8 +2344,11 @@ public final SendCommandToDeviceResponse sendCommandToDevice(
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   String name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString();
    *   ByteString binaryData = ByteString.EMPTY;
@@ -2180,8 +2396,11 @@ public final SendCommandToDeviceResponse sendCommandToDevice(
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   SendCommandToDeviceRequest request =
    *       SendCommandToDeviceRequest.newBuilder()
@@ -2217,8 +2436,11 @@ public final SendCommandToDeviceResponse sendCommandToDevice(SendCommandToDevice
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   SendCommandToDeviceRequest request =
    *       SendCommandToDeviceRequest.newBuilder()
@@ -2246,8 +2468,11 @@ public final SendCommandToDeviceResponse sendCommandToDevice(SendCommandToDevice
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   RegistryName parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]");
    *   String gatewayId = "gatewayId-1354641793";
@@ -2283,8 +2508,11 @@ public final BindDeviceToGatewayResponse bindDeviceToGateway(
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   String parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString();
    *   String gatewayId = "gatewayId-1354641793";
@@ -2320,8 +2548,11 @@ public final BindDeviceToGatewayResponse bindDeviceToGateway(
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   BindDeviceToGatewayRequest request =
    *       BindDeviceToGatewayRequest.newBuilder()
@@ -2347,8 +2578,11 @@ public final BindDeviceToGatewayResponse bindDeviceToGateway(BindDeviceToGateway
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   BindDeviceToGatewayRequest request =
    *       BindDeviceToGatewayRequest.newBuilder()
@@ -2375,8 +2609,11 @@ public final BindDeviceToGatewayResponse bindDeviceToGateway(BindDeviceToGateway
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   RegistryName parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]");
    *   String gatewayId = "gatewayId-1354641793";
@@ -2412,8 +2649,11 @@ public final UnbindDeviceFromGatewayResponse unbindDeviceFromGateway(
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   String parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString();
    *   String gatewayId = "gatewayId-1354641793";
@@ -2449,8 +2689,11 @@ public final UnbindDeviceFromGatewayResponse unbindDeviceFromGateway(
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   UnbindDeviceFromGatewayRequest request =
    *       UnbindDeviceFromGatewayRequest.newBuilder()
@@ -2478,8 +2721,11 @@ public final UnbindDeviceFromGatewayResponse unbindDeviceFromGateway(
    * 

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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
    *   UnbindDeviceFromGatewayRequest request =
    *       UnbindDeviceFromGatewayRequest.newBuilder()
diff --git a/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerSettings.java b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerSettings.java
index 85fb6891..3c64e9cd 100644
--- a/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerSettings.java
+++ b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/DeviceManagerSettings.java
@@ -60,8 +60,11 @@
  * 

For example, to set the total timeout of createDeviceRegistry 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
  * DeviceManagerSettings.Builder deviceManagerSettingsBuilder = DeviceManagerSettings.newBuilder();
  * deviceManagerSettingsBuilder
  *     .createDeviceRegistrySettings()
diff --git a/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/package-info.java b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/package-info.java
index bd631086..0e447431 100644
--- a/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/package-info.java
+++ b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/package-info.java
@@ -25,8 +25,11 @@
  * 

Sample for DeviceManagerClient: * *

{@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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  *   DeviceRegistry deviceRegistry = DeviceRegistry.newBuilder().build();
diff --git a/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java
index 008ea98c..2eb0c0b5 100644
--- a/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java
+++ b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/DeviceManagerStubSettings.java
@@ -103,8 +103,11 @@
  * 

For example, to set the total timeout of createDeviceRegistry 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
  * DeviceManagerStubSettings.Builder deviceManagerSettingsBuilder =
  *     DeviceManagerStubSettings.newBuilder();
  * deviceManagerSettingsBuilder
diff --git a/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/HttpJsonDeviceManagerStub.java b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/HttpJsonDeviceManagerStub.java
index 1506c3f9..fd445c9f 100644
--- a/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/HttpJsonDeviceManagerStub.java
+++ b/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/HttpJsonDeviceManagerStub.java
@@ -110,7 +110,7 @@ public class HttpJsonDeviceManagerStub extends DeviceManagerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("deviceRegistry", request.getDeviceRegistry()))
+                                  .toBody("deviceRegistry", request.getDeviceRegistry(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -183,7 +183,7 @@ public class HttpJsonDeviceManagerStub extends DeviceManagerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("deviceRegistry", request.getDeviceRegistry()))
+                                  .toBody("deviceRegistry", request.getDeviceRegistry(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -288,7 +288,8 @@ public class HttpJsonDeviceManagerStub extends DeviceManagerStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("device", request.getDevice()))
+                              ProtoRestSerializer.create()
+                                  .toBody("device", request.getDevice(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -362,7 +363,8 @@ public class HttpJsonDeviceManagerStub extends DeviceManagerStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
-                              ProtoRestSerializer.create().toBody("device", request.getDevice()))
+                              ProtoRestSerializer.create()
+                                  .toBody("device", request.getDevice(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -477,7 +479,7 @@ public class HttpJsonDeviceManagerStub extends DeviceManagerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -590,7 +592,7 @@ public class HttpJsonDeviceManagerStub extends DeviceManagerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -628,7 +630,7 @@ public class HttpJsonDeviceManagerStub extends DeviceManagerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -666,7 +668,7 @@ public class HttpJsonDeviceManagerStub extends DeviceManagerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -704,7 +706,7 @@ public class HttpJsonDeviceManagerStub extends DeviceManagerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -742,7 +744,7 @@ public class HttpJsonDeviceManagerStub extends DeviceManagerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -782,7 +784,7 @@ public class HttpJsonDeviceManagerStub extends DeviceManagerStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
diff --git a/grpc-google-cloud-iot-v1/pom.xml b/grpc-google-cloud-iot-v1/pom.xml
index eb9132ad..4974b40b 100644
--- a/grpc-google-cloud-iot-v1/pom.xml
+++ b/grpc-google-cloud-iot-v1/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   grpc-google-cloud-iot-v1
-  2.3.3
+  2.3.4
   grpc-google-cloud-iot-v1
   GRPC library for grpc-google-cloud-iot-v1
   
     com.google.cloud
     google-cloud-iot-parent
-    2.3.3
+    2.3.4
   
   
     
diff --git a/pom.xml b/pom.xml
index 4ac89e2e..de44bf32 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
   com.google.cloud
   google-cloud-iot-parent
   pom
-  2.3.3
+  2.3.4
   Google Cloud IoT Core Parent
   https://github.com/googleapis/java-iot
   
@@ -61,23 +61,23 @@
       
         com.google.api.grpc
         proto-google-cloud-iot-v1
-        2.3.3
+        2.3.4
       
       
         com.google.api.grpc
         grpc-google-cloud-iot-v1
-        2.3.3
+        2.3.4
       
       
         com.google.cloud
         google-cloud-iot
-        2.3.3
+        2.3.4
       
 
       
         com.google.cloud
         google-cloud-shared-dependencies
-        3.0.2
+        3.0.3
         pom
         import
       
diff --git a/proto-google-cloud-iot-v1/pom.xml b/proto-google-cloud-iot-v1/pom.xml
index 4183a1be..9d524b2b 100644
--- a/proto-google-cloud-iot-v1/pom.xml
+++ b/proto-google-cloud-iot-v1/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   proto-google-cloud-iot-v1
-  2.3.3
+  2.3.4
   proto-google-cloud-iot-v1
   PROTO library for proto-google-cloud-iot-v1
   
     com.google.cloud
     google-cloud-iot-parent
-    2.3.3
+    2.3.4
   
   
     
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index beb69bfe..3941f9cd 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -29,7 +29,7 @@
     
       com.google.cloud
       google-cloud-iot
-      2.3.2
+      2.3.3
     
     
 
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 1a8fb6fe..d9687c6c 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -28,7 +28,7 @@
     
       com.google.cloud
       google-cloud-iot
-      2.3.2
+      2.3.3
     
 
     
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/AsyncBindDeviceToGateway.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/AsyncBindDeviceToGateway.java
index e51f2e80..bf0600eb 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/AsyncBindDeviceToGateway.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/AsyncBindDeviceToGateway.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncBindDeviceToGateway() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       BindDeviceToGatewayRequest request =
           BindDeviceToGatewayRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGateway.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGateway.java
index 179618e0..93b5e8b6 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGateway.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGateway.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncBindDeviceToGateway() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       BindDeviceToGatewayRequest request =
           BindDeviceToGatewayRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayRegistrynameStringString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayRegistrynameStringString.java
index 394a07be..f9aa834a 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayRegistrynameStringString.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayRegistrynameStringString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncBindDeviceToGatewayRegistrynameStringString() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       RegistryName parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]");
       String gatewayId = "gatewayId-1354641793";
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayStringStringString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayStringStringString.java
index c6d96eb9..3320bcdb 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayStringStringString.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/binddevicetogateway/SyncBindDeviceToGatewayStringStringString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncBindDeviceToGatewayStringStringString() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       String parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString();
       String gatewayId = "gatewayId-1354641793";
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider.java
index 21f36841..285f027e 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/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
     DeviceManagerSettings deviceManagerSettings =
         DeviceManagerSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider1.java
index 7da39d5a..c5109cf4 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/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
     DeviceManagerSettings deviceManagerSettings =
         DeviceManagerSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetEndpoint.java
index 0901ca65..5fddcdd7 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/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
     DeviceManagerSettings deviceManagerSettings =
         DeviceManagerSettings.newBuilder().setEndpoint(myEndpoint).build();
     DeviceManagerClient deviceManagerClient = DeviceManagerClient.create(deviceManagerSettings);
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/AsyncCreateDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/AsyncCreateDevice.java
index 352b065f..c32dd9f7 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/AsyncCreateDevice.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/AsyncCreateDevice.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateDevice() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       CreateDeviceRequest request =
           CreateDeviceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDevice.java
index a9b26d86..ed4c38ef 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDevice.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDevice.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateDevice() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       CreateDeviceRequest request =
           CreateDeviceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceRegistrynameDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceRegistrynameDevice.java
index 9b748532..0668b8e9 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceRegistrynameDevice.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceRegistrynameDevice.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateDeviceRegistrynameDevice() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       RegistryName parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]");
       Device device = Device.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceStringDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceStringDevice.java
index faa03a58..1b9d6368 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceStringDevice.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdevice/SyncCreateDeviceStringDevice.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateDeviceStringDevice() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       String parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString();
       Device device = Device.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/AsyncCreateDeviceRegistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/AsyncCreateDeviceRegistry.java
index 89f18d9f..4e86e807 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/AsyncCreateDeviceRegistry.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/AsyncCreateDeviceRegistry.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateDeviceRegistry() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       CreateDeviceRegistryRequest request =
           CreateDeviceRegistryRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistry.java
index b519382d..f006a234 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistry.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistry.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateDeviceRegistry() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       CreateDeviceRegistryRequest request =
           CreateDeviceRegistryRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryLocationnameDeviceregistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryLocationnameDeviceregistry.java
index 57280b3d..aec64c2c 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryLocationnameDeviceregistry.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryLocationnameDeviceregistry.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateDeviceRegistryLocationnameDeviceregistry() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       DeviceRegistry deviceRegistry = DeviceRegistry.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryStringDeviceregistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryStringDeviceregistry.java
index 7e654e50..53edea10 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryStringDeviceregistry.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/createdeviceregistry/SyncCreateDeviceRegistryStringDeviceregistry.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateDeviceRegistryStringDeviceregistry() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       DeviceRegistry deviceRegistry = DeviceRegistry.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/AsyncDeleteDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/AsyncDeleteDevice.java
index 4a0dc80b..4fe186ce 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/AsyncDeleteDevice.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/AsyncDeleteDevice.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteDevice() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       DeleteDeviceRequest request =
           DeleteDeviceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDevice.java
index 197e737a..672164f4 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDevice.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDevice.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteDevice() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       DeleteDeviceRequest request =
           DeleteDeviceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceDevicename.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceDevicename.java
index eecd3801..b0d90aeb 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceDevicename.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceDevicename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteDeviceDevicename() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]");
       deviceManagerClient.deleteDevice(name);
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceString.java
index ac3f82c2..e76460d9 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceString.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedevice/SyncDeleteDeviceString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteDeviceString() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       String name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString();
       deviceManagerClient.deleteDevice(name);
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/AsyncDeleteDeviceRegistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/AsyncDeleteDeviceRegistry.java
index 5fb47ba4..eb0c74f9 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/AsyncDeleteDeviceRegistry.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/AsyncDeleteDeviceRegistry.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteDeviceRegistry() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       DeleteDeviceRegistryRequest request =
           DeleteDeviceRegistryRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistry.java
index 5f1de94a..8e2faadf 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistry.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistry.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteDeviceRegistry() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       DeleteDeviceRegistryRequest request =
           DeleteDeviceRegistryRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryRegistryname.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryRegistryname.java
index de0a5a14..c789b761 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryRegistryname.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryRegistryname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteDeviceRegistryRegistryname() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       RegistryName name = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]");
       deviceManagerClient.deleteDeviceRegistry(name);
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryString.java
index fa48c8a0..1c52d298 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryString.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/deletedeviceregistry/SyncDeleteDeviceRegistryString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteDeviceRegistryString() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       String name = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString();
       deviceManagerClient.deleteDeviceRegistry(name);
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/AsyncGetDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/AsyncGetDevice.java
index a7bde5c0..6ed1480d 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/AsyncGetDevice.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/AsyncGetDevice.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetDevice() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       GetDeviceRequest request =
           GetDeviceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDevice.java
index a8a0c391..f512ba34 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDevice.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDevice.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetDevice() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       GetDeviceRequest request =
           GetDeviceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceDevicename.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceDevicename.java
index b914e7c8..329c3f63 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceDevicename.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceDevicename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetDeviceDevicename() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]");
       Device response = deviceManagerClient.getDevice(name);
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceString.java
index 158a4682..59a9bcaf 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceString.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdevice/SyncGetDeviceString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetDeviceString() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       String name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString();
       Device response = deviceManagerClient.getDevice(name);
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/AsyncGetDeviceRegistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/AsyncGetDeviceRegistry.java
index 25b5322c..4db67f49 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/AsyncGetDeviceRegistry.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/AsyncGetDeviceRegistry.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetDeviceRegistry() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       GetDeviceRegistryRequest request =
           GetDeviceRegistryRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistry.java
index 07bd505f..97b7b58c 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistry.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistry.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetDeviceRegistry() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       GetDeviceRegistryRequest request =
           GetDeviceRegistryRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryRegistryname.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryRegistryname.java
index 236fb79b..93391ae8 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryRegistryname.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryRegistryname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetDeviceRegistryRegistryname() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       RegistryName name = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]");
       DeviceRegistry response = deviceManagerClient.getDeviceRegistry(name);
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryString.java
index c657e438..11b118e0 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryString.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getdeviceregistry/SyncGetDeviceRegistryString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetDeviceRegistryString() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       String name = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString();
       DeviceRegistry response = deviceManagerClient.getDeviceRegistry(name);
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/AsyncGetIamPolicy.java
index 32eb3622..dadf1c5f 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/AsyncGetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       GetIamPolicyRequest request =
           GetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicy.java
index 54e1d459..d39aaef8 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       GetIamPolicyRequest request =
           GetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyResourcename.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyResourcename.java
index c3c92d47..afd18cc1 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyResourcename.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       ResourceName resource = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]");
       Policy response = deviceManagerClient.getIamPolicy(resource);
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyString.java
index 795e8bd8..325b52bc 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/getiampolicy/SyncGetIamPolicyString.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       String resource =
           DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString();
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/AsyncListDeviceConfigVersions.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/AsyncListDeviceConfigVersions.java
index 0d75d876..3bc78f65 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/AsyncListDeviceConfigVersions.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/AsyncListDeviceConfigVersions.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListDeviceConfigVersions() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       ListDeviceConfigVersionsRequest request =
           ListDeviceConfigVersionsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersions.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersions.java
index 558b23a4..099c31bc 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersions.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersions.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListDeviceConfigVersions() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       ListDeviceConfigVersionsRequest request =
           ListDeviceConfigVersionsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsDevicename.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsDevicename.java
index 260dd903..f1b1ab27 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsDevicename.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsDevicename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListDeviceConfigVersionsDevicename() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]");
       ListDeviceConfigVersionsResponse response =
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsString.java
index f4e9bec3..ce453141 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsString.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceconfigversions/SyncListDeviceConfigVersionsString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListDeviceConfigVersionsString() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       String name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString();
       ListDeviceConfigVersionsResponse response =
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistries.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistries.java
index d24edbe8..1505390e 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistries.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistries.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListDeviceRegistries() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       ListDeviceRegistriesRequest request =
           ListDeviceRegistriesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistriesPaged.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistriesPaged.java
index 67fb8cf9..1d15147f 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistriesPaged.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/AsyncListDeviceRegistriesPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListDeviceRegistriesPaged() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       ListDeviceRegistriesRequest request =
           ListDeviceRegistriesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistries.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistries.java
index bd896f4c..aa193ba2 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistries.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistries.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListDeviceRegistries() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       ListDeviceRegistriesRequest request =
           ListDeviceRegistriesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesLocationname.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesLocationname.java
index d022d994..9fbe430e 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListDeviceRegistriesLocationname() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (DeviceRegistry element : deviceManagerClient.listDeviceRegistries(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesString.java
index 3ea5d4b0..66eb18bc 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesString.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdeviceregistries/SyncListDeviceRegistriesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListDeviceRegistriesString() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       for (DeviceRegistry element : deviceManagerClient.listDeviceRegistries(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevices.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevices.java
index 33eb2f6d..5de58634 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevices.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevices.java
@@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListDevices() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       ListDevicesRequest request =
           ListDevicesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevicesPaged.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevicesPaged.java
index 86f8f01b..b6834b22 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevicesPaged.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/AsyncListDevicesPaged.java
@@ -34,8 +34,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListDevicesPaged() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       ListDevicesRequest request =
           ListDevicesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevices.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevices.java
index 61f60c49..35f931f4 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevices.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevices.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListDevices() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       ListDevicesRequest request =
           ListDevicesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesRegistryname.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesRegistryname.java
index 8ccb15b1..babdca15 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesRegistryname.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesRegistryname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListDevicesRegistryname() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       RegistryName parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]");
       for (Device element : deviceManagerClient.listDevices(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesString.java
index e666e198..30f00c4b 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesString.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevices/SyncListDevicesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListDevicesString() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       String parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString();
       for (Device element : deviceManagerClient.listDevices(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/AsyncListDeviceStates.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/AsyncListDeviceStates.java
index 0a761d65..13e122b8 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/AsyncListDeviceStates.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/AsyncListDeviceStates.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListDeviceStates() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       ListDeviceStatesRequest request =
           ListDeviceStatesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStates.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStates.java
index 879a4cc4..b94cdca6 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStates.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStates.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListDeviceStates() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       ListDeviceStatesRequest request =
           ListDeviceStatesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesDevicename.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesDevicename.java
index 47eb9a14..28087811 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesDevicename.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesDevicename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListDeviceStatesDevicename() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]");
       ListDeviceStatesResponse response = deviceManagerClient.listDeviceStates(name);
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesString.java
index ee9b22ec..bef4b985 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesString.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/listdevicestates/SyncListDeviceStatesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListDeviceStatesString() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       String name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString();
       ListDeviceStatesResponse response = deviceManagerClient.listDeviceStates(name);
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/AsyncModifyCloudToDeviceConfig.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/AsyncModifyCloudToDeviceConfig.java
index 39171621..53ac67b0 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/AsyncModifyCloudToDeviceConfig.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/AsyncModifyCloudToDeviceConfig.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncModifyCloudToDeviceConfig() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       ModifyCloudToDeviceConfigRequest request =
           ModifyCloudToDeviceConfigRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfig.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfig.java
index 8de4fbc4..b969d5c5 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfig.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfig.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncModifyCloudToDeviceConfig() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       ModifyCloudToDeviceConfigRequest request =
           ModifyCloudToDeviceConfigRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigDevicenameBytestring.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigDevicenameBytestring.java
index b23744c0..3e15c46c 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigDevicenameBytestring.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigDevicenameBytestring.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncModifyCloudToDeviceConfigDevicenameBytestring() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]");
       ByteString binaryData = ByteString.EMPTY;
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigStringBytestring.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigStringBytestring.java
index 03290984..af28c7a2 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigStringBytestring.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/modifycloudtodeviceconfig/SyncModifyCloudToDeviceConfigStringBytestring.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncModifyCloudToDeviceConfigStringBytestring() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       String name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString();
       ByteString binaryData = ByteString.EMPTY;
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/AsyncSendCommandToDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/AsyncSendCommandToDevice.java
index 971c5e57..b43ab6dd 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/AsyncSendCommandToDevice.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/AsyncSendCommandToDevice.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSendCommandToDevice() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       SendCommandToDeviceRequest request =
           SendCommandToDeviceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDevice.java
index a45dacdc..245161f7 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDevice.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDevice.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSendCommandToDevice() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       SendCommandToDeviceRequest request =
           SendCommandToDeviceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestring.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestring.java
index ebcb096f..9d671416 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestring.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestring.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSendCommandToDeviceDevicenameBytestring() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]");
       ByteString binaryData = ByteString.EMPTY;
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestringString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestringString.java
index 3a71ea24..4a5cbcae 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestringString.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceDevicenameBytestringString.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSendCommandToDeviceDevicenameBytestringString() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       DeviceName name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]");
       ByteString binaryData = ByteString.EMPTY;
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestring.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestring.java
index 7d91a2b6..37db077a 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestring.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestring.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSendCommandToDeviceStringBytestring() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       String name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString();
       ByteString binaryData = ByteString.EMPTY;
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestringString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestringString.java
index d21bbd80..e4c4ec9a 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestringString.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/sendcommandtodevice/SyncSendCommandToDeviceStringBytestringString.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSendCommandToDeviceStringBytestringString() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       String name = DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString();
       ByteString binaryData = ByteString.EMPTY;
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/AsyncSetIamPolicy.java
index 9a5e65f3..444ef29a 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/AsyncSetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       SetIamPolicyRequest request =
           SetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicy.java
index 8921ca90..de60829e 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       SetIamPolicyRequest request =
           SetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
index 66f6682b..8f685e72 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       ResourceName resource = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]");
       Policy policy = Policy.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
index 70a20b65..14b780a8 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       String resource =
           DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString();
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/AsyncTestIamPermissions.java
index 30fc679e..f64a9771 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/AsyncTestIamPermissions.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       TestIamPermissionsRequest request =
           TestIamPermissionsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissions.java
index 5267cf4b..24804e6e 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissions.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       TestIamPermissionsRequest request =
           TestIamPermissionsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
index 1a0e8fbe..408a6e2d 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       ResourceName resource = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]");
       List permissions = new ArrayList<>();
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
index d0807fe6..ea6b4057 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       String resource =
           DeviceName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]", "[DEVICE]").toString();
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/AsyncUnbindDeviceFromGateway.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/AsyncUnbindDeviceFromGateway.java
index ef98fd8c..1e750960 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/AsyncUnbindDeviceFromGateway.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/AsyncUnbindDeviceFromGateway.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUnbindDeviceFromGateway() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       UnbindDeviceFromGatewayRequest request =
           UnbindDeviceFromGatewayRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGateway.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGateway.java
index d58e14fe..05ac4995 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGateway.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGateway.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUnbindDeviceFromGateway() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       UnbindDeviceFromGatewayRequest request =
           UnbindDeviceFromGatewayRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayRegistrynameStringString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayRegistrynameStringString.java
index bae1f73b..b5ca333b 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayRegistrynameStringString.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayRegistrynameStringString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUnbindDeviceFromGatewayRegistrynameStringString() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       RegistryName parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]");
       String gatewayId = "gatewayId-1354641793";
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayStringStringString.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayStringStringString.java
index 62f593e3..c3242587 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayStringStringString.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/unbinddevicefromgateway/SyncUnbindDeviceFromGatewayStringStringString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUnbindDeviceFromGatewayStringStringString() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       String parent = RegistryName.of("[PROJECT]", "[LOCATION]", "[REGISTRY]").toString();
       String gatewayId = "gatewayId-1354641793";
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/AsyncUpdateDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/AsyncUpdateDevice.java
index f97b79d2..e7fe139f 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/AsyncUpdateDevice.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/AsyncUpdateDevice.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateDevice() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       UpdateDeviceRequest request =
           UpdateDeviceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDevice.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDevice.java
index f492fe05..d4738692 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDevice.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDevice.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateDevice() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       UpdateDeviceRequest request =
           UpdateDeviceRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDeviceDeviceFieldmask.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDeviceDeviceFieldmask.java
index b6ff04cc..340f7f05 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDeviceDeviceFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedevice/SyncUpdateDeviceDeviceFieldmask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateDeviceDeviceFieldmask() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       Device device = Device.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/AsyncUpdateDeviceRegistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/AsyncUpdateDeviceRegistry.java
index f5662c33..61f76c97 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/AsyncUpdateDeviceRegistry.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/AsyncUpdateDeviceRegistry.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateDeviceRegistry() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       UpdateDeviceRegistryRequest request =
           UpdateDeviceRegistryRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistry.java
index 3625e1a9..a4c294e8 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistry.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistry.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateDeviceRegistry() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       UpdateDeviceRegistryRequest request =
           UpdateDeviceRegistryRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistryDeviceregistryFieldmask.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistryDeviceregistryFieldmask.java
index 8ba608c9..02623e6a 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistryDeviceregistryFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagerclient/updatedeviceregistry/SyncUpdateDeviceRegistryDeviceregistryFieldmask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateDeviceRegistryDeviceregistryFieldmask() 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 (DeviceManagerClient deviceManagerClient = DeviceManagerClient.create()) {
       DeviceRegistry deviceRegistry = DeviceRegistry.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagersettings/createdeviceregistry/SyncCreateDeviceRegistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagersettings/createdeviceregistry/SyncCreateDeviceRegistry.java
index 3090bcb1..2f78cb64 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagersettings/createdeviceregistry/SyncCreateDeviceRegistry.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/devicemanagersettings/createdeviceregistry/SyncCreateDeviceRegistry.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateDeviceRegistry() 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
     DeviceManagerSettings.Builder deviceManagerSettingsBuilder = DeviceManagerSettings.newBuilder();
     deviceManagerSettingsBuilder
         .createDeviceRegistrySettings()
diff --git a/samples/snippets/generated/com/google/cloud/iot/v1/stub/devicemanagerstubsettings/createdeviceregistry/SyncCreateDeviceRegistry.java b/samples/snippets/generated/com/google/cloud/iot/v1/stub/devicemanagerstubsettings/createdeviceregistry/SyncCreateDeviceRegistry.java
index acfb9649..b4d979e5 100644
--- a/samples/snippets/generated/com/google/cloud/iot/v1/stub/devicemanagerstubsettings/createdeviceregistry/SyncCreateDeviceRegistry.java
+++ b/samples/snippets/generated/com/google/cloud/iot/v1/stub/devicemanagerstubsettings/createdeviceregistry/SyncCreateDeviceRegistry.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateDeviceRegistry() 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
     DeviceManagerStubSettings.Builder deviceManagerSettingsBuilder =
         DeviceManagerStubSettings.newBuilder();
     deviceManagerSettingsBuilder
diff --git a/versions.txt b/versions.txt
index 1f0c389c..112cf3c9 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,6 +1,6 @@
 # Format:
 # module:released-version:current-version
 
-google-cloud-iot:2.3.3:2.3.3
-grpc-google-cloud-iot-v1:2.3.3:2.3.3
-proto-google-cloud-iot-v1:2.3.3:2.3.3
+google-cloud-iot:2.3.4:2.3.4
+grpc-google-cloud-iot-v1:2.3.4:2.3.4
+proto-google-cloud-iot-v1:2.3.4:2.3.4