diff --git a/CHANGELOG.md b/CHANGELOG.md index f43734b5..3792d853 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.2.4](https://github.com/googleapis/java-dms/compare/v2.2.3...v2.2.4) (2022-09-09) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#258](https://github.com/googleapis/java-dms/issues/258)) ([da927bf](https://github.com/googleapis/java-dms/commit/da927bf96d5c0c419e48e60eea2a18490a61d11c)) + ## [2.2.3](https://github.com/googleapis/java-dms/compare/v2.2.2...v2.2.3) (2022-08-09) diff --git a/README.md b/README.md index 70db4f4a..a322e80e 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-dms - 2.2.1 + 2.2.3 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dms:2.2.1' +implementation 'com.google.cloud:google-cloud-dms:2.2.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.2.1" +libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.2.3" ``` ## Authentication diff --git a/google-cloud-dms-bom/pom.xml b/google-cloud-dms-bom/pom.xml index 4c65567a..21bab8ae 100644 --- a/google-cloud-dms-bom/pom.xml +++ b/google-cloud-dms-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dms-bom - 2.2.3 + 2.2.4 pom com.google.cloud @@ -56,17 +56,17 @@ com.google.cloud google-cloud-dms - 2.2.3 + 2.2.4 com.google.api.grpc grpc-google-cloud-dms-v1 - 2.2.3 + 2.2.4 com.google.api.grpc proto-google-cloud-dms-v1 - 2.2.3 + 2.2.4 diff --git a/google-cloud-dms/pom.xml b/google-cloud-dms/pom.xml index 45f1dbde..591d2385 100644 --- a/google-cloud-dms/pom.xml +++ b/google-cloud-dms/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dms - 2.2.3 + 2.2.4 jar Google Database Migration Service https://github.com/googleapis/java-dms @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dms-parent - 2.2.3 + 2.2.4 google-cloud-dms diff --git a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java index 95d9af25..c072f4e1 100644 --- a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java +++ b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceClient.java @@ -46,8 +46,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 (DataMigrationServiceClient dataMigrationServiceClient =
  *     DataMigrationServiceClient.create()) {
  *   MigrationJobName name = MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]");
@@ -85,8 +88,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
  * DataMigrationServiceSettings dataMigrationServiceSettings =
  *     DataMigrationServiceSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -98,8 +104,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * DataMigrationServiceSettings dataMigrationServiceSettings =
  *     DataMigrationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
  * DataMigrationServiceClient dataMigrationServiceClient =
@@ -176,8 +185,11 @@ public final OperationsClient getOperationsClient() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
@@ -206,8 +218,11 @@ public final ListMigrationJobsPagedResponse listMigrationJobs(LocationName 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 (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
@@ -234,8 +249,11 @@ public final ListMigrationJobsPagedResponse listMigrationJobs(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 (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   ListMigrationJobsRequest request =
@@ -267,8 +285,11 @@ public final ListMigrationJobsPagedResponse listMigrationJobs(ListMigrationJobsR
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   MigrationJobName name = MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]");
@@ -365,8 +392,11 @@ public final MigrationJob getMigrationJob(MigrationJobName 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 (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   String name = MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString();
@@ -389,8 +419,11 @@ public final MigrationJob getMigrationJob(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 (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   GetMigrationJobRequest request =
@@ -415,8 +448,11 @@ public final MigrationJob getMigrationJob(GetMigrationJobRequest 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 (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   GetMigrationJobRequest request =
@@ -441,8 +477,11 @@ public final UnaryCallable getMigrationJob
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   GenerateSshScriptRequest request =
@@ -1387,8 +1522,11 @@ public final SshScript generateSshScript(GenerateSshScriptRequest 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 (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   GenerateSshScriptRequest request =
@@ -1416,8 +1554,11 @@ public final UnaryCallable generateSshScrip
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   ConnectionProfileName name =
@@ -1609,8 +1765,11 @@ public final ConnectionProfile getConnectionProfile(ConnectionProfileName 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 (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   String name =
@@ -1635,8 +1794,11 @@ public final ConnectionProfile getConnectionProfile(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 (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   GetConnectionProfileRequest request =
@@ -1663,8 +1825,11 @@ public final ConnectionProfile getConnectionProfile(GetConnectionProfileRequest
    * 

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

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

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (DataMigrationServiceClient dataMigrationServiceClient =
    *     DataMigrationServiceClient.create()) {
    *   DeleteConnectionProfileRequest request =
diff --git a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java
index 86df72e4..039127f3 100644
--- a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java
+++ b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/DataMigrationServiceSettings.java
@@ -56,8 +56,11 @@
  * 

For example, to set the total timeout of getMigrationJob 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
  * DataMigrationServiceSettings.Builder dataMigrationServiceSettingsBuilder =
  *     DataMigrationServiceSettings.newBuilder();
  * dataMigrationServiceSettingsBuilder
diff --git a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/package-info.java b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/package-info.java
index 6a26838f..fcbbe42b 100644
--- a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/package-info.java
+++ b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/package-info.java
@@ -24,8 +24,11 @@
  * 

Sample for DataMigrationServiceClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (DataMigrationServiceClient dataMigrationServiceClient =
  *     DataMigrationServiceClient.create()) {
  *   MigrationJobName name = MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]");
diff --git a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java
index 73c5b74d..6b8e60b8 100644
--- a/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java
+++ b/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/DataMigrationServiceStubSettings.java
@@ -97,8 +97,11 @@
  * 

For example, to set the total timeout of getMigrationJob 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
  * DataMigrationServiceStubSettings.Builder dataMigrationServiceSettingsBuilder =
  *     DataMigrationServiceStubSettings.newBuilder();
  * dataMigrationServiceSettingsBuilder
diff --git a/grpc-google-cloud-dms-v1/pom.xml b/grpc-google-cloud-dms-v1/pom.xml
index 41ae9f14..7c0bf372 100644
--- a/grpc-google-cloud-dms-v1/pom.xml
+++ b/grpc-google-cloud-dms-v1/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   grpc-google-cloud-dms-v1
-  2.2.3
+  2.2.4
   grpc-google-cloud-dms-v1
   GRPC library for google-cloud-dms
   
     com.google.cloud
     google-cloud-dms-parent
-    2.2.3
+    2.2.4
   
   
     
diff --git a/pom.xml b/pom.xml
index de3c8ec2..64b250b4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
   com.google.cloud
   google-cloud-dms-parent
   pom
-  2.2.3
+  2.2.4
   Google Database Migration Service Parent
   https://github.com/googleapis/java-dms
   
@@ -60,23 +60,23 @@
       
         com.google.cloud
         google-cloud-dms
-        2.2.3
+        2.2.4
       
 
       
         com.google.api.grpc
         proto-google-cloud-dms-v1
-        2.2.3
+        2.2.4
       
       
         com.google.api.grpc
         grpc-google-cloud-dms-v1
-        2.2.3
+        2.2.4
       
       
         com.google.cloud
         google-cloud-shared-dependencies
-        3.0.1
+        3.0.2
         pom
         import
       
@@ -112,7 +112,7 @@
       
         org.apache.maven.plugins
         maven-project-info-reports-plugin
-        3.4.0
+        3.4.1
         
           
             
@@ -139,7 +139,7 @@
       
         org.apache.maven.plugins
         maven-javadoc-plugin
-        3.4.0
+        3.4.1
         
           
             html
diff --git a/proto-google-cloud-dms-v1/pom.xml b/proto-google-cloud-dms-v1/pom.xml
index 2f79e0f1..73fd0191 100644
--- a/proto-google-cloud-dms-v1/pom.xml
+++ b/proto-google-cloud-dms-v1/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   proto-google-cloud-dms-v1
-  2.2.3
+  2.2.4
   proto-google-cloud-dms-v1
   Proto library for google-cloud-dms
   
     com.google.cloud
     google-cloud-dms-parent
-    2.2.3
+    2.2.4
   
   
     
diff --git a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java
index 15d628b1..fcb66291 100644
--- a/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java
+++ b/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java
@@ -114,173 +114,172 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "pi/resource.proto\032\036google/protobuf/durat"
           + "ion.proto\032\037google/protobuf/timestamp.pro"
           + "to\032\036google/protobuf/wrappers.proto\032\027goog"
-          + "le/rpc/status.proto\032\034google/api/annotati"
-          + "ons.proto\"\356\001\n\tSslConfig\022>\n\004type\030\001 \001(\0162+."
-          + "google.cloud.clouddms.v1.SslConfig.SslTy"
-          + "peB\003\340A\003\022\027\n\nclient_key\030\002 \001(\tB\003\340A\004\022\037\n\022clie"
-          + "nt_certificate\030\003 \001(\tB\003\340A\004\022\036\n\016ca_certific"
-          + "ate\030\004 \001(\tB\006\340A\004\340A\002\"G\n\007SslType\022\030\n\024SSL_TYPE"
-          + "_UNSPECIFIED\020\000\022\017\n\013SERVER_ONLY\020\001\022\021\n\rSERVE"
-          + "R_CLIENT\020\002\"\322\001\n\026MySqlConnectionProfile\022\021\n"
-          + "\004host\030\001 \001(\tB\003\340A\002\022\021\n\004port\030\002 \001(\005B\003\340A\002\022\025\n\010u"
-          + "sername\030\003 \001(\tB\003\340A\002\022\030\n\010password\030\004 \001(\tB\006\340A"
-          + "\004\340A\002\022\031\n\014password_set\030\005 \001(\010B\003\340A\003\0220\n\003ssl\030\006"
-          + " \001(\0132#.google.cloud.clouddms.v1.SslConfi"
-          + "g\022\024\n\014cloud_sql_id\030\007 \001(\t\"\327\001\n\033PostgreSqlCo"
-          + "nnectionProfile\022\021\n\004host\030\001 \001(\tB\003\340A\002\022\021\n\004po"
-          + "rt\030\002 \001(\005B\003\340A\002\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\030\n\010"
-          + "password\030\004 \001(\tB\006\340A\004\340A\002\022\031\n\014password_set\030\005"
-          + " \001(\010B\003\340A\003\0220\n\003ssl\030\006 \001(\0132#.google.cloud.cl"
-          + "ouddms.v1.SslConfig\022\024\n\014cloud_sql_id\030\007 \001("
-          + "\t\"\252\001\n\031CloudSqlConnectionProfile\022\031\n\014cloud"
-          + "_sql_id\030\001 \001(\tB\003\340A\003\022A\n\010settings\030\002 \001(\0132*.g"
+          + "le/rpc/status.proto\"\356\001\n\tSslConfig\022>\n\004typ"
+          + "e\030\001 \001(\0162+.google.cloud.clouddms.v1.SslCo"
+          + "nfig.SslTypeB\003\340A\003\022\027\n\nclient_key\030\002 \001(\tB\003\340"
+          + "A\004\022\037\n\022client_certificate\030\003 \001(\tB\003\340A\004\022\036\n\016c"
+          + "a_certificate\030\004 \001(\tB\006\340A\004\340A\002\"G\n\007SslType\022\030"
+          + "\n\024SSL_TYPE_UNSPECIFIED\020\000\022\017\n\013SERVER_ONLY\020"
+          + "\001\022\021\n\rSERVER_CLIENT\020\002\"\322\001\n\026MySqlConnection"
+          + "Profile\022\021\n\004host\030\001 \001(\tB\003\340A\002\022\021\n\004port\030\002 \001(\005"
+          + "B\003\340A\002\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\030\n\010password"
+          + "\030\004 \001(\tB\006\340A\004\340A\002\022\031\n\014password_set\030\005 \001(\010B\003\340A"
+          + "\003\0220\n\003ssl\030\006 \001(\0132#.google.cloud.clouddms.v"
+          + "1.SslConfig\022\024\n\014cloud_sql_id\030\007 \001(\t\"\327\001\n\033Po"
+          + "stgreSqlConnectionProfile\022\021\n\004host\030\001 \001(\tB"
+          + "\003\340A\002\022\021\n\004port\030\002 \001(\005B\003\340A\002\022\025\n\010username\030\003 \001("
+          + "\tB\003\340A\002\022\030\n\010password\030\004 \001(\tB\006\340A\004\340A\002\022\031\n\014pass"
+          + "word_set\030\005 \001(\010B\003\340A\003\0220\n\003ssl\030\006 \001(\0132#.googl"
+          + "e.cloud.clouddms.v1.SslConfig\022\024\n\014cloud_s"
+          + "ql_id\030\007 \001(\t\"\252\001\n\031CloudSqlConnectionProfil"
+          + "e\022\031\n\014cloud_sql_id\030\001 \001(\tB\003\340A\003\022A\n\010settings"
+          + "\030\002 \001(\0132*.google.cloud.clouddms.v1.CloudS"
+          + "qlSettingsB\003\340A\005\022\027\n\nprivate_ip\030\003 \001(\tB\003\340A\003"
+          + "\022\026\n\tpublic_ip\030\004 \001(\tB\003\340A\003\"\233\001\n\013SqlAclEntry"
+          + "\022\r\n\005value\030\001 \001(\t\0221\n\013expire_time\030\n \001(\0132\032.g"
+          + "oogle.protobuf.TimestampH\000\022-\n\003ttl\030\013 \001(\0132"
+          + "\031.google.protobuf.DurationB\003\340A\004H\000\022\r\n\005lab"
+          + "el\030\003 \001(\tB\014\n\nexpiration\"\314\001\n\013SqlIpConfig\022/"
+          + "\n\013enable_ipv4\030\001 \001(\0132\032.google.protobuf.Bo"
+          + "olValue\022\027\n\017private_network\030\002 \001(\t\022/\n\013requ"
+          + "ire_ssl\030\003 \001(\0132\032.google.protobuf.BoolValu"
+          + "e\022B\n\023authorized_networks\030\004 \003(\0132%.google."
+          + "cloud.clouddms.v1.SqlAclEntry\"\372\t\n\020CloudS"
+          + "qlSettings\022W\n\020database_version\030\001 \001(\0162=.g"
           + "oogle.cloud.clouddms.v1.CloudSqlSettings"
-          + "B\003\340A\005\022\027\n\nprivate_ip\030\003 \001(\tB\003\340A\003\022\026\n\tpublic"
-          + "_ip\030\004 \001(\tB\003\340A\003\"\233\001\n\013SqlAclEntry\022\r\n\005value\030"
-          + "\001 \001(\t\0221\n\013expire_time\030\n \001(\0132\032.google.prot"
-          + "obuf.TimestampH\000\022-\n\003ttl\030\013 \001(\0132\031.google.p"
-          + "rotobuf.DurationB\003\340A\004H\000\022\r\n\005label\030\003 \001(\tB\014"
-          + "\n\nexpiration\"\314\001\n\013SqlIpConfig\022/\n\013enable_i"
-          + "pv4\030\001 \001(\0132\032.google.protobuf.BoolValue\022\027\n"
-          + "\017private_network\030\002 \001(\t\022/\n\013require_ssl\030\003 "
-          + "\001(\0132\032.google.protobuf.BoolValue\022B\n\023autho"
-          + "rized_networks\030\004 \003(\0132%.google.cloud.clou"
-          + "ddms.v1.SqlAclEntry\"\372\t\n\020CloudSqlSettings"
-          + "\022W\n\020database_version\030\001 \001(\0162=.google.clou"
-          + "d.clouddms.v1.CloudSqlSettings.SqlDataba"
-          + "seVersion\022O\n\013user_labels\030\002 \003(\0132:.google."
-          + "cloud.clouddms.v1.CloudSqlSettings.UserL"
-          + "abelsEntry\022\014\n\004tier\030\003 \001(\t\022>\n\031storage_auto"
-          + "_resize_limit\030\004 \001(\0132\033.google.protobuf.In"
-          + "t64Value\022Y\n\021activation_policy\030\005 \001(\0162>.go"
-          + "ogle.cloud.clouddms.v1.CloudSqlSettings."
-          + "SqlActivationPolicy\0228\n\tip_config\030\006 \001(\0132%"
-          + ".google.cloud.clouddms.v1.SqlIpConfig\0229\n"
-          + "\025auto_storage_increase\030\007 \001(\0132\032.google.pr"
-          + "otobuf.BoolValue\022U\n\016database_flags\030\010 \003(\013"
-          + "2=.google.cloud.clouddms.v1.CloudSqlSett"
-          + "ings.DatabaseFlagsEntry\022R\n\016data_disk_typ"
-          + "e\030\t \001(\0162:.google.cloud.clouddms.v1.Cloud"
-          + "SqlSettings.SqlDataDiskType\0226\n\021data_disk"
-          + "_size_gb\030\n \001(\0132\033.google.protobuf.Int64Va"
-          + "lue\022\014\n\004zone\030\013 \001(\t\022\021\n\tsource_id\030\014 \001(\t\022\032\n\r"
-          + "root_password\030\r \001(\tB\003\340A\004\022\036\n\021root_passwor"
-          + "d_set\030\016 \001(\010B\003\340A\003\022\021\n\tcollation\030\017 \001(\t\0321\n\017U"
-          + "serLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001"
-          + "(\t:\0028\001\0324\n\022DatabaseFlagsEntry\022\013\n\003key\030\001 \001("
-          + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"S\n\023SqlActivationPol"
-          + "icy\022%\n!SQL_ACTIVATION_POLICY_UNSPECIFIED"
-          + "\020\000\022\n\n\006ALWAYS\020\001\022\t\n\005NEVER\020\002\"M\n\017SqlDataDisk"
-          + "Type\022\"\n\036SQL_DATA_DISK_TYPE_UNSPECIFIED\020\000"
-          + "\022\n\n\006PD_SSD\020\001\022\n\n\006PD_HDD\020\002\"\275\001\n\022SqlDatabase"
-          + "Version\022$\n SQL_DATABASE_VERSION_UNSPECIF"
-          + "IED\020\000\022\r\n\tMYSQL_5_6\020\001\022\r\n\tMYSQL_5_7\020\002\022\020\n\014P"
-          + "OSTGRES_9_6\020\003\022\017\n\013POSTGRES_11\020\004\022\017\n\013POSTGR"
-          + "ES_10\020\005\022\r\n\tMYSQL_8_0\020\006\022\017\n\013POSTGRES_12\020\007\022"
-          + "\017\n\013POSTGRES_13\020\010\"\026\n\024StaticIpConnectivity"
-          + "\"[\n\026ReverseSshConnectivity\022\022\n\005vm_ip\030\001 \001("
-          + "\tB\003\340A\002\022\024\n\007vm_port\030\002 \001(\005B\003\340A\002\022\n\n\002vm\030\003 \001(\t"
-          + "\022\013\n\003vpc\030\004 \001(\t\"%\n\026VpcPeeringConnectivity\022"
-          + "\013\n\003vpc\030\001 \001(\t\"\206\001\n\014DatabaseType\022<\n\010provide"
-          + "r\030\001 \001(\0162*.google.cloud.clouddms.v1.Datab"
-          + "aseProvider\0228\n\006engine\030\002 \001(\0162(.google.clo"
-          + "ud.clouddms.v1.DatabaseEngine\"\354\014\n\014Migrat"
-          + "ionJob\022\014\n\004name\030\001 \001(\t\0224\n\013create_time\030\002 \001("
-          + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up"
-          + "date_time\030\003 \001(\0132\032.google.protobuf.Timest"
-          + "ampB\003\340A\003\022B\n\006labels\030\004 \003(\01322.google.cloud."
-          + "clouddms.v1.MigrationJob.LabelsEntry\022\024\n\014"
-          + "display_name\030\005 \001(\t\022;\n\005state\030\006 \001(\0162,.goog"
-          + "le.cloud.clouddms.v1.MigrationJob.State\022"
-          + "@\n\005phase\030\007 \001(\0162,.google.cloud.clouddms.v"
-          + "1.MigrationJob.PhaseB\003\340A\003\022>\n\004type\030\010 \001(\0162"
-          + "+.google.cloud.clouddms.v1.MigrationJob."
-          + "TypeB\003\340A\002\022\021\n\tdump_path\030\t \001(\t\022\023\n\006source\030\n"
-          + " \001(\tB\003\340A\002\022\030\n\013destination\030\013 \001(\tB\003\340A\002\022T\n\030r"
-          + "everse_ssh_connectivity\030e \001(\01320.google.c"
-          + "loud.clouddms.v1.ReverseSshConnectivityH"
-          + "\000\022T\n\030vpc_peering_connectivity\030f \001(\01320.go"
-          + "ogle.cloud.clouddms.v1.VpcPeeringConnect"
-          + "ivityH\000\022P\n\026static_ip_connectivity\030g \001(\0132"
-          + "..google.cloud.clouddms.v1.StaticIpConne"
-          + "ctivityH\000\0220\n\010duration\030\014 \001(\0132\031.google.pro"
-          + "tobuf.DurationB\003\340A\003\022&\n\005error\030\r \001(\0132\022.goo"
-          + "gle.rpc.StatusB\003\340A\003\022?\n\017source_database\030\016"
+          + ".SqlDatabaseVersion\022O\n\013user_labels\030\002 \003(\013"
+          + "2:.google.cloud.clouddms.v1.CloudSqlSett"
+          + "ings.UserLabelsEntry\022\014\n\004tier\030\003 \001(\t\022>\n\031st"
+          + "orage_auto_resize_limit\030\004 \001(\0132\033.google.p"
+          + "rotobuf.Int64Value\022Y\n\021activation_policy\030"
+          + "\005 \001(\0162>.google.cloud.clouddms.v1.CloudSq"
+          + "lSettings.SqlActivationPolicy\0228\n\tip_conf"
+          + "ig\030\006 \001(\0132%.google.cloud.clouddms.v1.SqlI"
+          + "pConfig\0229\n\025auto_storage_increase\030\007 \001(\0132\032"
+          + ".google.protobuf.BoolValue\022U\n\016database_f"
+          + "lags\030\010 \003(\0132=.google.cloud.clouddms.v1.Cl"
+          + "oudSqlSettings.DatabaseFlagsEntry\022R\n\016dat"
+          + "a_disk_type\030\t \001(\0162:.google.cloud.clouddm"
+          + "s.v1.CloudSqlSettings.SqlDataDiskType\0226\n"
+          + "\021data_disk_size_gb\030\n \001(\0132\033.google.protob"
+          + "uf.Int64Value\022\014\n\004zone\030\013 \001(\t\022\021\n\tsource_id"
+          + "\030\014 \001(\t\022\032\n\rroot_password\030\r \001(\tB\003\340A\004\022\036\n\021ro"
+          + "ot_password_set\030\016 \001(\010B\003\340A\003\022\021\n\tcollation\030"
+          + "\017 \001(\t\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n"
+          + "\005value\030\002 \001(\t:\0028\001\0324\n\022DatabaseFlagsEntry\022\013"
+          + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"S\n\023SqlAct"
+          + "ivationPolicy\022%\n!SQL_ACTIVATION_POLICY_U"
+          + "NSPECIFIED\020\000\022\n\n\006ALWAYS\020\001\022\t\n\005NEVER\020\002\"M\n\017S"
+          + "qlDataDiskType\022\"\n\036SQL_DATA_DISK_TYPE_UNS"
+          + "PECIFIED\020\000\022\n\n\006PD_SSD\020\001\022\n\n\006PD_HDD\020\002\"\275\001\n\022S"
+          + "qlDatabaseVersion\022$\n SQL_DATABASE_VERSIO"
+          + "N_UNSPECIFIED\020\000\022\r\n\tMYSQL_5_6\020\001\022\r\n\tMYSQL_"
+          + "5_7\020\002\022\020\n\014POSTGRES_9_6\020\003\022\017\n\013POSTGRES_11\020\004"
+          + "\022\017\n\013POSTGRES_10\020\005\022\r\n\tMYSQL_8_0\020\006\022\017\n\013POST"
+          + "GRES_12\020\007\022\017\n\013POSTGRES_13\020\010\"\026\n\024StaticIpCo"
+          + "nnectivity\"[\n\026ReverseSshConnectivity\022\022\n\005"
+          + "vm_ip\030\001 \001(\tB\003\340A\002\022\024\n\007vm_port\030\002 \001(\005B\003\340A\002\022\n"
+          + "\n\002vm\030\003 \001(\t\022\013\n\003vpc\030\004 \001(\t\"%\n\026VpcPeeringCon"
+          + "nectivity\022\013\n\003vpc\030\001 \001(\t\"\206\001\n\014DatabaseType\022"
+          + "<\n\010provider\030\001 \001(\0162*.google.cloud.clouddm"
+          + "s.v1.DatabaseProvider\0228\n\006engine\030\002 \001(\0162(."
+          + "google.cloud.clouddms.v1.DatabaseEngine\""
+          + "\354\014\n\014MigrationJob\022\014\n\004name\030\001 \001(\t\0224\n\013create"
+          + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB"
+          + "\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.proto"
+          + "buf.TimestampB\003\340A\003\022B\n\006labels\030\004 \003(\01322.goo"
+          + "gle.cloud.clouddms.v1.MigrationJob.Label"
+          + "sEntry\022\024\n\014display_name\030\005 \001(\t\022;\n\005state\030\006 "
+          + "\001(\0162,.google.cloud.clouddms.v1.Migration"
+          + "Job.State\022@\n\005phase\030\007 \001(\0162,.google.cloud."
+          + "clouddms.v1.MigrationJob.PhaseB\003\340A\003\022>\n\004t"
+          + "ype\030\010 \001(\0162+.google.cloud.clouddms.v1.Mig"
+          + "rationJob.TypeB\003\340A\002\022\021\n\tdump_path\030\t \001(\t\022\023"
+          + "\n\006source\030\n \001(\tB\003\340A\002\022\030\n\013destination\030\013 \001(\t"
+          + "B\003\340A\002\022T\n\030reverse_ssh_connectivity\030e \001(\0132"
+          + "0.google.cloud.clouddms.v1.ReverseSshCon"
+          + "nectivityH\000\022T\n\030vpc_peering_connectivity\030"
+          + "f \001(\01320.google.cloud.clouddms.v1.VpcPeer"
+          + "ingConnectivityH\000\022P\n\026static_ip_connectiv"
+          + "ity\030g \001(\0132..google.cloud.clouddms.v1.Sta"
+          + "ticIpConnectivityH\000\0220\n\010duration\030\014 \001(\0132\031."
+          + "google.protobuf.DurationB\003\340A\003\022&\n\005error\030\r"
+          + " \001(\0132\022.google.rpc.StatusB\003\340A\003\022?\n\017source_"
+          + "database\030\016 \001(\0132&.google.cloud.clouddms.v"
+          + "1.DatabaseType\022D\n\024destination_database\030\017"
           + " \001(\0132&.google.cloud.clouddms.v1.Database"
-          + "Type\022D\n\024destination_database\030\017 \001(\0132&.goo"
-          + "gle.cloud.clouddms.v1.DatabaseType\0221\n\010en"
-          + "d_time\030\020 \001(\0132\032.google.protobuf.Timestamp"
-          + "B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val"
-          + "ue\030\002 \001(\t:\0028\001\"\361\001\n\005State\022\025\n\021STATE_UNSPECIF"
-          + "IED\020\000\022\017\n\013MAINTENANCE\020\001\022\t\n\005DRAFT\020\002\022\014\n\010CRE"
-          + "ATING\020\003\022\017\n\013NOT_STARTED\020\004\022\013\n\007RUNNING\020\005\022\n\n"
-          + "\006FAILED\020\006\022\r\n\tCOMPLETED\020\007\022\014\n\010DELETING\020\010\022\014"
-          + "\n\010STOPPING\020\t\022\013\n\007STOPPED\020\n\022\013\n\007DELETED\020\013\022\014"
-          + "\n\010UPDATING\020\014\022\014\n\010STARTING\020\r\022\016\n\nRESTARTING"
-          + "\020\016\022\014\n\010RESUMING\020\017\"\216\001\n\005Phase\022\025\n\021PHASE_UNSP"
-          + "ECIFIED\020\000\022\r\n\tFULL_DUMP\020\001\022\007\n\003CDC\020\002\022\027\n\023PRO"
-          + "MOTE_IN_PROGRESS\020\003\022%\n!WAITING_FOR_SOURCE"
-          + "_WRITES_TO_STOP\020\004\022\026\n\022PREPARING_THE_DUMP\020"
-          + "\005\":\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\014\n\010ONE_T"
-          + "IME\020\001\022\016\n\nCONTINUOUS\020\002:u\352Ar\n)datamigratio"
-          + "n.googleapis.com/MigrationJob\022Eprojects/"
-          + "{project}/locations/{location}/migration"
-          + "Jobs/{migration_job}B\016\n\014connectivity\"\263\007\n"
-          + "\021ConnectionProfile\022\014\n\004name\030\001 \001(\t\0224\n\013crea"
-          + "te_time\030\002 \001(\0132\032.google.protobuf.Timestam"
-          + "pB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.pro"
-          + "tobuf.TimestampB\003\340A\003\022G\n\006labels\030\004 \003(\01327.g"
-          + "oogle.cloud.clouddms.v1.ConnectionProfil"
-          + "e.LabelsEntry\022@\n\005state\030\005 \001(\01621.google.cl"
-          + "oud.clouddms.v1.ConnectionProfile.State\022"
-          + "\024\n\014display_name\030\006 \001(\t\022A\n\005mysql\030d \001(\01320.g"
-          + "oogle.cloud.clouddms.v1.MySqlConnectionP"
-          + "rofileH\000\022K\n\npostgresql\030e \001(\01325.google.cl"
-          + "oud.clouddms.v1.PostgreSqlConnectionProf"
-          + "ileH\000\022G\n\010cloudsql\030f \001(\01323.google.cloud.c"
-          + "louddms.v1.CloudSqlConnectionProfileH\000\022&"
-          + "\n\005error\030\007 \001(\0132\022.google.rpc.StatusB\003\340A\003\022<"
-          + "\n\010provider\030\010 \001(\0162*.google.cloud.clouddms"
-          + ".v1.DatabaseProvider\032-\n\013LabelsEntry\022\013\n\003k"
-          + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\005State\022\025\n\021"
-          + "STATE_UNSPECIFIED\020\000\022\t\n\005DRAFT\020\001\022\014\n\010CREATI"
-          + "NG\020\002\022\t\n\005READY\020\003\022\014\n\010UPDATING\020\004\022\014\n\010DELETIN"
-          + "G\020\005\022\013\n\007DELETED\020\006\022\n\n\006FAILED\020\007:\205\001\352A\201\001\n.dat"
-          + "amigration.googleapis.com/ConnectionProf"
-          + "ile\022Oprojects/{project}/locations/{locat"
-          + "ion}/connectionProfiles/{connection_prof"
-          + "ile}B\024\n\022connection_profile\"\320\006\n\035Migration"
-          + "JobVerificationError\022Z\n\nerror_code\030\001 \001(\016"
-          + "2A.google.cloud.clouddms.v1.MigrationJob"
-          + "VerificationError.ErrorCodeB\003\340A\003\022\032\n\rerro"
-          + "r_message\030\002 \001(\tB\003\340A\003\022!\n\024error_detail_mes"
-          + "sage\030\003 \001(\tB\003\340A\003\"\223\005\n\tErrorCode\022\032\n\026ERROR_C"
-          + "ODE_UNSPECIFIED\020\000\022\026\n\022CONNECTION_FAILURE\020"
-          + "\001\022\032\n\026AUTHENTICATION_FAILURE\020\002\022%\n!INVALID"
-          + "_CONNECTION_PROFILE_CONFIG\020\003\022\033\n\027VERSION_"
-          + "INCOMPATIBILITY\020\004\022,\n(CONNECTION_PROFILE_"
-          + "TYPES_INCOMPATIBILITY\020\005\022\032\n\026NO_PGLOGICAL_"
-          + "INSTALLED\020\007\022!\n\035PGLOGICAL_NODE_ALREADY_EX"
-          + "ISTS\020\010\022\025\n\021INVALID_WAL_LEVEL\020\t\022\"\n\036INVALID"
-          + "_SHARED_PRELOAD_LIBRARY\020\n\022&\n\"INSUFFICIEN"
-          + "T_MAX_REPLICATION_SLOTS\020\013\022 \n\034INSUFFICIEN"
-          + "T_MAX_WAL_SENDERS\020\014\022%\n!INSUFFICIENT_MAX_"
-          + "WORKER_PROCESSES\020\r\022\032\n\026UNSUPPORTED_EXTENS"
-          + "IONS\020\016\022\036\n\032UNSUPPORTED_MIGRATION_TYPE\020\017\022#"
-          + "\n\037INVALID_RDS_LOGICAL_REPLICATION\020\020\022\031\n\025U"
-          + "NSUPPORTED_GTID_MODE\020\021\022 \n\034UNSUPPORTED_TA"
-          + "BLE_DEFINITION\020\022\022\027\n\023UNSUPPORTED_DEFINER\020"
-          + "\023\022\"\n\036CANT_RESTART_RUNNING_MIGRATION\020\025*L\n"
-          + "\016DatabaseEngine\022\037\n\033DATABASE_ENGINE_UNSPE"
-          + "CIFIED\020\000\022\t\n\005MYSQL\020\001\022\016\n\nPOSTGRESQL\020\002*L\n\020D"
-          + "atabaseProvider\022!\n\035DATABASE_PROVIDER_UNS"
-          + "PECIFIED\020\000\022\014\n\010CLOUDSQL\020\001\022\007\n\003RDS\020\002B\316\001\n\034co"
-          + "m.google.cloud.clouddms.v1B\026ClouddmsReso"
-          + "urcesProtoP\001Z@google.golang.org/genproto"
-          + "/googleapis/cloud/clouddms/v1;clouddms\252\002"
-          + "\030Google.Cloud.CloudDms.V1\312\002\030Google\\Cloud"
-          + "\\CloudDms\\V1\352\002\033Google::Cloud::CloudDMS::"
-          + "V1b\006proto3"
+          + "Type\0221\n\010end_time\030\020 \001(\0132\032.google.protobuf"
+          + ".TimestampB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 "
+          + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\361\001\n\005State\022\025\n\021STAT"
+          + "E_UNSPECIFIED\020\000\022\017\n\013MAINTENANCE\020\001\022\t\n\005DRAF"
+          + "T\020\002\022\014\n\010CREATING\020\003\022\017\n\013NOT_STARTED\020\004\022\013\n\007RU"
+          + "NNING\020\005\022\n\n\006FAILED\020\006\022\r\n\tCOMPLETED\020\007\022\014\n\010DE"
+          + "LETING\020\010\022\014\n\010STOPPING\020\t\022\013\n\007STOPPED\020\n\022\013\n\007D"
+          + "ELETED\020\013\022\014\n\010UPDATING\020\014\022\014\n\010STARTING\020\r\022\016\n\n"
+          + "RESTARTING\020\016\022\014\n\010RESUMING\020\017\"\216\001\n\005Phase\022\025\n\021"
+          + "PHASE_UNSPECIFIED\020\000\022\r\n\tFULL_DUMP\020\001\022\007\n\003CD"
+          + "C\020\002\022\027\n\023PROMOTE_IN_PROGRESS\020\003\022%\n!WAITING_"
+          + "FOR_SOURCE_WRITES_TO_STOP\020\004\022\026\n\022PREPARING"
+          + "_THE_DUMP\020\005\":\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020"
+          + "\000\022\014\n\010ONE_TIME\020\001\022\016\n\nCONTINUOUS\020\002:u\352Ar\n)da"
+          + "tamigration.googleapis.com/MigrationJob\022"
+          + "Eprojects/{project}/locations/{location}"
+          + "/migrationJobs/{migration_job}B\016\n\014connec"
+          + "tivity\"\263\007\n\021ConnectionProfile\022\014\n\004name\030\001 \001"
+          + "(\t\0224\n\013create_time\030\002 \001(\0132\032.google.protobu"
+          + "f.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032."
+          + "google.protobuf.TimestampB\003\340A\003\022G\n\006labels"
+          + "\030\004 \003(\01327.google.cloud.clouddms.v1.Connec"
+          + "tionProfile.LabelsEntry\022@\n\005state\030\005 \001(\01621"
+          + ".google.cloud.clouddms.v1.ConnectionProf"
+          + "ile.State\022\024\n\014display_name\030\006 \001(\t\022A\n\005mysql"
+          + "\030d \001(\01320.google.cloud.clouddms.v1.MySqlC"
+          + "onnectionProfileH\000\022K\n\npostgresql\030e \001(\01325"
+          + ".google.cloud.clouddms.v1.PostgreSqlConn"
+          + "ectionProfileH\000\022G\n\010cloudsql\030f \001(\01323.goog"
+          + "le.cloud.clouddms.v1.CloudSqlConnectionP"
+          + "rofileH\000\022&\n\005error\030\007 \001(\0132\022.google.rpc.Sta"
+          + "tusB\003\340A\003\022<\n\010provider\030\010 \001(\0162*.google.clou"
+          + "d.clouddms.v1.DatabaseProvider\032-\n\013Labels"
+          + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n"
+          + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005DRAFT\020\001"
+          + "\022\014\n\010CREATING\020\002\022\t\n\005READY\020\003\022\014\n\010UPDATING\020\004\022"
+          + "\014\n\010DELETING\020\005\022\013\n\007DELETED\020\006\022\n\n\006FAILED\020\007:\205"
+          + "\001\352A\201\001\n.datamigration.googleapis.com/Conn"
+          + "ectionProfile\022Oprojects/{project}/locati"
+          + "ons/{location}/connectionProfiles/{conne"
+          + "ction_profile}B\024\n\022connection_profile\"\320\006\n"
+          + "\035MigrationJobVerificationError\022Z\n\nerror_"
+          + "code\030\001 \001(\0162A.google.cloud.clouddms.v1.Mi"
+          + "grationJobVerificationError.ErrorCodeB\003\340"
+          + "A\003\022\032\n\rerror_message\030\002 \001(\tB\003\340A\003\022!\n\024error_"
+          + "detail_message\030\003 \001(\tB\003\340A\003\"\223\005\n\tErrorCode\022"
+          + "\032\n\026ERROR_CODE_UNSPECIFIED\020\000\022\026\n\022CONNECTIO"
+          + "N_FAILURE\020\001\022\032\n\026AUTHENTICATION_FAILURE\020\002\022"
+          + "%\n!INVALID_CONNECTION_PROFILE_CONFIG\020\003\022\033"
+          + "\n\027VERSION_INCOMPATIBILITY\020\004\022,\n(CONNECTIO"
+          + "N_PROFILE_TYPES_INCOMPATIBILITY\020\005\022\032\n\026NO_"
+          + "PGLOGICAL_INSTALLED\020\007\022!\n\035PGLOGICAL_NODE_"
+          + "ALREADY_EXISTS\020\010\022\025\n\021INVALID_WAL_LEVEL\020\t\022"
+          + "\"\n\036INVALID_SHARED_PRELOAD_LIBRARY\020\n\022&\n\"I"
+          + "NSUFFICIENT_MAX_REPLICATION_SLOTS\020\013\022 \n\034I"
+          + "NSUFFICIENT_MAX_WAL_SENDERS\020\014\022%\n!INSUFFI"
+          + "CIENT_MAX_WORKER_PROCESSES\020\r\022\032\n\026UNSUPPOR"
+          + "TED_EXTENSIONS\020\016\022\036\n\032UNSUPPORTED_MIGRATIO"
+          + "N_TYPE\020\017\022#\n\037INVALID_RDS_LOGICAL_REPLICAT"
+          + "ION\020\020\022\031\n\025UNSUPPORTED_GTID_MODE\020\021\022 \n\034UNSU"
+          + "PPORTED_TABLE_DEFINITION\020\022\022\027\n\023UNSUPPORTE"
+          + "D_DEFINER\020\023\022\"\n\036CANT_RESTART_RUNNING_MIGR"
+          + "ATION\020\025*L\n\016DatabaseEngine\022\037\n\033DATABASE_EN"
+          + "GINE_UNSPECIFIED\020\000\022\t\n\005MYSQL\020\001\022\016\n\nPOSTGRE"
+          + "SQL\020\002*L\n\020DatabaseProvider\022!\n\035DATABASE_PR"
+          + "OVIDER_UNSPECIFIED\020\000\022\014\n\010CLOUDSQL\020\001\022\007\n\003RD"
+          + "S\020\002B\316\001\n\034com.google.cloud.clouddms.v1B\026Cl"
+          + "ouddmsResourcesProtoP\001Z@google.golang.or"
+          + "g/genproto/googleapis/cloud/clouddms/v1;"
+          + "clouddms\252\002\030Google.Cloud.CloudDms.V1\312\002\030Go"
+          + "ogle\\Cloud\\CloudDms\\V1\352\002\033Google::Cloud::"
+          + "CloudDMS::V1b\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -292,7 +291,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               com.google.protobuf.TimestampProto.getDescriptor(),
               com.google.protobuf.WrappersProto.getDescriptor(),
               com.google.rpc.StatusProto.getDescriptor(),
-              com.google.api.AnnotationsProto.getDescriptor(),
             });
     internal_static_google_cloud_clouddms_v1_SslConfig_descriptor =
         getDescriptor().getMessageTypes().get(0);
@@ -498,7 +496,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     com.google.protobuf.TimestampProto.getDescriptor();
     com.google.protobuf.WrappersProto.getDescriptor();
     com.google.rpc.StatusProto.getDescriptor();
-    com.google.api.AnnotationsProto.getDescriptor();
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto b/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto
index 1032e18a..dd7731a6 100644
--- a/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto
+++ b/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto
@@ -22,7 +22,6 @@ import "google/protobuf/duration.proto";
 import "google/protobuf/timestamp.proto";
 import "google/protobuf/wrappers.proto";
 import "google/rpc/status.proto";
-import "google/api/annotations.proto";
 
 option csharp_namespace = "Google.Cloud.CloudDms.V1";
 option go_package = "google.golang.org/genproto/googleapis/cloud/clouddms/v1;clouddms";
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index af37c2b3..13ffca2b 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -29,7 +29,7 @@
     
       com.google.cloud
       google-cloud-dms
-      2.2.1
+      2.2.3
     
     
 
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 1a3bb360..a7da09c1 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -28,7 +28,7 @@
     
       com.google.cloud
       google-cloud-dms
-      2.2.1
+      2.2.3
     
   
 
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/create/SyncCreateSetCredentialsProvider.java
new file mode 100644
index 00000000..787b9e63
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_create_setcredentialsprovider_sync]
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.DataMigrationServiceSettings;
+import com.google.cloud.clouddms.v1.myCredentials;
+
+public class SyncCreateSetCredentialsProvider {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetCredentialsProvider();
+  }
+
+  public static void syncCreateSetCredentialsProvider() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    DataMigrationServiceSettings dataMigrationServiceSettings =
+        DataMigrationServiceSettings.newBuilder()
+            .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+            .build();
+    DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create(dataMigrationServiceSettings);
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_create_setcredentialsprovider_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/create/SyncCreateSetEndpoint.java
new file mode 100644
index 00000000..e9a01be4
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/create/SyncCreateSetEndpoint.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_create_setendpoint_sync]
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.DataMigrationServiceSettings;
+import com.google.cloud.clouddms.v1.myEndpoint;
+
+public class SyncCreateSetEndpoint {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetEndpoint();
+  }
+
+  public static void syncCreateSetEndpoint() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    DataMigrationServiceSettings dataMigrationServiceSettings =
+        DataMigrationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+    DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create(dataMigrationServiceSettings);
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_create_setendpoint_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/AsyncCreateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/AsyncCreateConnectionProfile.java
new file mode 100644
index 00000000..baabc329
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/AsyncCreateConnectionProfile.java
@@ -0,0 +1,57 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.clouddms.v1.ConnectionProfile;
+import com.google.cloud.clouddms.v1.ConnectionProfileName;
+import com.google.cloud.clouddms.v1.CreateConnectionProfileRequest;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.longrunning.Operation;
+
+public class AsyncCreateConnectionProfile {
+
+  public static void main(String[] args) throws Exception {
+    asyncCreateConnectionProfile();
+  }
+
+  public static void asyncCreateConnectionProfile() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      CreateConnectionProfileRequest request =
+          CreateConnectionProfileRequest.newBuilder()
+              .setParent(
+                  ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]")
+                      .toString())
+              .setConnectionProfileId("connectionProfileId597575526")
+              .setConnectionProfile(ConnectionProfile.newBuilder().build())
+              .setRequestId("requestId693933066")
+              .build();
+      ApiFuture future =
+          dataMigrationServiceClient.createConnectionProfileCallable().futureCall(request);
+      // Do something.
+      Operation response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java
new file mode 100644
index 00000000..ca5a5286
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java
@@ -0,0 +1,57 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_lro_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.clouddms.v1.ConnectionProfile;
+import com.google.cloud.clouddms.v1.ConnectionProfileName;
+import com.google.cloud.clouddms.v1.CreateConnectionProfileRequest;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.OperationMetadata;
+
+public class AsyncCreateConnectionProfileLRO {
+
+  public static void main(String[] args) throws Exception {
+    asyncCreateConnectionProfileLRO();
+  }
+
+  public static void asyncCreateConnectionProfileLRO() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      CreateConnectionProfileRequest request =
+          CreateConnectionProfileRequest.newBuilder()
+              .setParent(
+                  ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]")
+                      .toString())
+              .setConnectionProfileId("connectionProfileId597575526")
+              .setConnectionProfile(ConnectionProfile.newBuilder().build())
+              .setRequestId("requestId693933066")
+              .build();
+      OperationFuture future =
+          dataMigrationServiceClient.createConnectionProfileOperationCallable().futureCall(request);
+      // Do something.
+      ConnectionProfile response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_lro_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfile.java
new file mode 100644
index 00000000..e8440875
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfile.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_sync]
+import com.google.cloud.clouddms.v1.ConnectionProfile;
+import com.google.cloud.clouddms.v1.ConnectionProfileName;
+import com.google.cloud.clouddms.v1.CreateConnectionProfileRequest;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+
+public class SyncCreateConnectionProfile {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateConnectionProfile();
+  }
+
+  public static void syncCreateConnectionProfile() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      CreateConnectionProfileRequest request =
+          CreateConnectionProfileRequest.newBuilder()
+              .setParent(
+                  ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]")
+                      .toString())
+              .setConnectionProfileId("connectionProfileId597575526")
+              .setConnectionProfile(ConnectionProfile.newBuilder().build())
+              .setRequestId("requestId693933066")
+              .build();
+      ConnectionProfile response =
+          dataMigrationServiceClient.createConnectionProfileAsync(request).get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfileConnectionprofilenameConnectionprofileString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfileConnectionprofilenameConnectionprofileString.java
new file mode 100644
index 00000000..bad31a2a
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfileConnectionprofilenameConnectionprofileString.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_connectionprofilenameconnectionprofilestring_sync]
+import com.google.cloud.clouddms.v1.ConnectionProfile;
+import com.google.cloud.clouddms.v1.ConnectionProfileName;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+
+public class SyncCreateConnectionProfileConnectionprofilenameConnectionprofileString {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateConnectionProfileConnectionprofilenameConnectionprofileString();
+  }
+
+  public static void syncCreateConnectionProfileConnectionprofilenameConnectionprofileString()
+      throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      ConnectionProfileName parent =
+          ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
+      ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build();
+      String connectionProfileId = "connectionProfileId597575526";
+      ConnectionProfile response =
+          dataMigrationServiceClient
+              .createConnectionProfileAsync(parent, connectionProfile, connectionProfileId)
+              .get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_connectionprofilenameconnectionprofilestring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java
new file mode 100644
index 00000000..62e2fba4
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_stringconnectionprofilestring_sync]
+import com.google.cloud.clouddms.v1.ConnectionProfile;
+import com.google.cloud.clouddms.v1.ConnectionProfileName;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+
+public class SyncCreateConnectionProfileStringConnectionprofileString {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateConnectionProfileStringConnectionprofileString();
+  }
+
+  public static void syncCreateConnectionProfileStringConnectionprofileString() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      String parent =
+          ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString();
+      ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build();
+      String connectionProfileId = "connectionProfileId597575526";
+      ConnectionProfile response =
+          dataMigrationServiceClient
+              .createConnectionProfileAsync(parent, connectionProfile, connectionProfileId)
+              .get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_stringconnectionprofilestring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/AsyncCreateMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/AsyncCreateMigrationJob.java
new file mode 100644
index 00000000..595b6f41
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/AsyncCreateMigrationJob.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_createmigrationjob_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.clouddms.v1.CreateMigrationJobRequest;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.LocationName;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.longrunning.Operation;
+
+public class AsyncCreateMigrationJob {
+
+  public static void main(String[] args) throws Exception {
+    asyncCreateMigrationJob();
+  }
+
+  public static void asyncCreateMigrationJob() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      CreateMigrationJobRequest request =
+          CreateMigrationJobRequest.newBuilder()
+              .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+              .setMigrationJobId("migrationJobId1870575242")
+              .setMigrationJob(MigrationJob.newBuilder().build())
+              .setRequestId("requestId693933066")
+              .build();
+      ApiFuture future =
+          dataMigrationServiceClient.createMigrationJobCallable().futureCall(request);
+      // Do something.
+      Operation response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_createmigrationjob_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/AsyncCreateMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/AsyncCreateMigrationJobLRO.java
new file mode 100644
index 00000000..723b16a3
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/AsyncCreateMigrationJobLRO.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_createmigrationjob_lro_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.clouddms.v1.CreateMigrationJobRequest;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.LocationName;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.cloud.clouddms.v1.OperationMetadata;
+
+public class AsyncCreateMigrationJobLRO {
+
+  public static void main(String[] args) throws Exception {
+    asyncCreateMigrationJobLRO();
+  }
+
+  public static void asyncCreateMigrationJobLRO() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      CreateMigrationJobRequest request =
+          CreateMigrationJobRequest.newBuilder()
+              .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+              .setMigrationJobId("migrationJobId1870575242")
+              .setMigrationJob(MigrationJob.newBuilder().build())
+              .setRequestId("requestId693933066")
+              .build();
+      OperationFuture future =
+          dataMigrationServiceClient.createMigrationJobOperationCallable().futureCall(request);
+      // Do something.
+      MigrationJob response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_createmigrationjob_lro_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJob.java
new file mode 100644
index 00000000..51ce36c7
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJob.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_createmigrationjob_sync]
+import com.google.cloud.clouddms.v1.CreateMigrationJobRequest;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.LocationName;
+import com.google.cloud.clouddms.v1.MigrationJob;
+
+public class SyncCreateMigrationJob {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateMigrationJob();
+  }
+
+  public static void syncCreateMigrationJob() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      CreateMigrationJobRequest request =
+          CreateMigrationJobRequest.newBuilder()
+              .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+              .setMigrationJobId("migrationJobId1870575242")
+              .setMigrationJob(MigrationJob.newBuilder().build())
+              .setRequestId("requestId693933066")
+              .build();
+      MigrationJob response = dataMigrationServiceClient.createMigrationJobAsync(request).get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_createmigrationjob_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJobLocationnameMigrationjobString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJobLocationnameMigrationjobString.java
new file mode 100644
index 00000000..cee4a468
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJobLocationnameMigrationjobString.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_createmigrationjob_locationnamemigrationjobstring_sync]
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.LocationName;
+import com.google.cloud.clouddms.v1.MigrationJob;
+
+public class SyncCreateMigrationJobLocationnameMigrationjobString {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateMigrationJobLocationnameMigrationjobString();
+  }
+
+  public static void syncCreateMigrationJobLocationnameMigrationjobString() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+      MigrationJob migrationJob = MigrationJob.newBuilder().build();
+      String migrationJobId = "migrationJobId1870575242";
+      MigrationJob response =
+          dataMigrationServiceClient
+              .createMigrationJobAsync(parent, migrationJob, migrationJobId)
+              .get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_createmigrationjob_locationnamemigrationjobstring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJobStringMigrationjobString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJobStringMigrationjobString.java
new file mode 100644
index 00000000..27ac3efe
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/createmigrationjob/SyncCreateMigrationJobStringMigrationjobString.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_createmigrationjob_stringmigrationjobstring_sync]
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.LocationName;
+import com.google.cloud.clouddms.v1.MigrationJob;
+
+public class SyncCreateMigrationJobStringMigrationjobString {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateMigrationJobStringMigrationjobString();
+  }
+
+  public static void syncCreateMigrationJobStringMigrationjobString() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+      MigrationJob migrationJob = MigrationJob.newBuilder().build();
+      String migrationJobId = "migrationJobId1870575242";
+      MigrationJob response =
+          dataMigrationServiceClient
+              .createMigrationJobAsync(parent, migrationJob, migrationJobId)
+              .get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_createmigrationjob_stringmigrationjobstring_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java
new file mode 100644
index 00000000..ab22ec5b
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_deleteconnectionprofile_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.clouddms.v1.ConnectionProfileName;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest;
+import com.google.longrunning.Operation;
+
+public class AsyncDeleteConnectionProfile {
+
+  public static void main(String[] args) throws Exception {
+    asyncDeleteConnectionProfile();
+  }
+
+  public static void asyncDeleteConnectionProfile() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      DeleteConnectionProfileRequest request =
+          DeleteConnectionProfileRequest.newBuilder()
+              .setName(
+                  ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]")
+                      .toString())
+              .setRequestId("requestId693933066")
+              .setForce(true)
+              .build();
+      ApiFuture future =
+          dataMigrationServiceClient.deleteConnectionProfileCallable().futureCall(request);
+      // Do something.
+      future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_deleteconnectionprofile_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java
new file mode 100644
index 00000000..79863d49
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java
@@ -0,0 +1,56 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_deleteconnectionprofile_lro_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.clouddms.v1.ConnectionProfileName;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest;
+import com.google.cloud.clouddms.v1.OperationMetadata;
+import com.google.protobuf.Empty;
+
+public class AsyncDeleteConnectionProfileLRO {
+
+  public static void main(String[] args) throws Exception {
+    asyncDeleteConnectionProfileLRO();
+  }
+
+  public static void asyncDeleteConnectionProfileLRO() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      DeleteConnectionProfileRequest request =
+          DeleteConnectionProfileRequest.newBuilder()
+              .setName(
+                  ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]")
+                      .toString())
+              .setRequestId("requestId693933066")
+              .setForce(true)
+              .build();
+      OperationFuture future =
+          dataMigrationServiceClient.deleteConnectionProfileOperationCallable().futureCall(request);
+      // Do something.
+      future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_deleteconnectionprofile_lro_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java
new file mode 100644
index 00000000..c04bba2c
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_deleteconnectionprofile_sync]
+import com.google.cloud.clouddms.v1.ConnectionProfileName;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteConnectionProfile {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteConnectionProfile();
+  }
+
+  public static void syncDeleteConnectionProfile() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      DeleteConnectionProfileRequest request =
+          DeleteConnectionProfileRequest.newBuilder()
+              .setName(
+                  ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]")
+                      .toString())
+              .setRequestId("requestId693933066")
+              .setForce(true)
+              .build();
+      dataMigrationServiceClient.deleteConnectionProfileAsync(request).get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_deleteconnectionprofile_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java
new file mode 100644
index 00000000..935e1d0a
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_deleteconnectionprofile_connectionprofilename_sync]
+import com.google.cloud.clouddms.v1.ConnectionProfileName;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteConnectionProfileConnectionprofilename {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteConnectionProfileConnectionprofilename();
+  }
+
+  public static void syncDeleteConnectionProfileConnectionprofilename() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      ConnectionProfileName name =
+          ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
+      dataMigrationServiceClient.deleteConnectionProfileAsync(name).get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_deleteconnectionprofile_connectionprofilename_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java
new file mode 100644
index 00000000..915bd054
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_deleteconnectionprofile_string_sync]
+import com.google.cloud.clouddms.v1.ConnectionProfileName;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteConnectionProfileString {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteConnectionProfileString();
+  }
+
+  public static void syncDeleteConnectionProfileString() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      String name =
+          ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString();
+      dataMigrationServiceClient.deleteConnectionProfileAsync(name).get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_deleteconnectionprofile_string_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/AsyncDeleteMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/AsyncDeleteMigrationJob.java
new file mode 100644
index 00000000..d7e594f7
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/AsyncDeleteMigrationJob.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_deletemigrationjob_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.DeleteMigrationJobRequest;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.longrunning.Operation;
+
+public class AsyncDeleteMigrationJob {
+
+  public static void main(String[] args) throws Exception {
+    asyncDeleteMigrationJob();
+  }
+
+  public static void asyncDeleteMigrationJob() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      DeleteMigrationJobRequest request =
+          DeleteMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .setRequestId("requestId693933066")
+              .setForce(true)
+              .build();
+      ApiFuture future =
+          dataMigrationServiceClient.deleteMigrationJobCallable().futureCall(request);
+      // Do something.
+      future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_deletemigrationjob_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/AsyncDeleteMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/AsyncDeleteMigrationJobLRO.java
new file mode 100644
index 00000000..a410af6b
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/AsyncDeleteMigrationJobLRO.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_deletemigrationjob_lro_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.DeleteMigrationJobRequest;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.cloud.clouddms.v1.OperationMetadata;
+import com.google.protobuf.Empty;
+
+public class AsyncDeleteMigrationJobLRO {
+
+  public static void main(String[] args) throws Exception {
+    asyncDeleteMigrationJobLRO();
+  }
+
+  public static void asyncDeleteMigrationJobLRO() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      DeleteMigrationJobRequest request =
+          DeleteMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .setRequestId("requestId693933066")
+              .setForce(true)
+              .build();
+      OperationFuture future =
+          dataMigrationServiceClient.deleteMigrationJobOperationCallable().futureCall(request);
+      // Do something.
+      future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_deletemigrationjob_lro_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJob.java
new file mode 100644
index 00000000..597a9ccb
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJob.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_deletemigrationjob_sync]
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.DeleteMigrationJobRequest;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteMigrationJob {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteMigrationJob();
+  }
+
+  public static void syncDeleteMigrationJob() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      DeleteMigrationJobRequest request =
+          DeleteMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .setRequestId("requestId693933066")
+              .setForce(true)
+              .build();
+      dataMigrationServiceClient.deleteMigrationJobAsync(request).get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_deletemigrationjob_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJobMigrationjobname.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJobMigrationjobname.java
new file mode 100644
index 00000000..5790f7c5
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJobMigrationjobname.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_deletemigrationjob_migrationjobname_sync]
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteMigrationJobMigrationjobname {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteMigrationJobMigrationjobname();
+  }
+
+  public static void syncDeleteMigrationJobMigrationjobname() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      MigrationJobName name = MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]");
+      dataMigrationServiceClient.deleteMigrationJobAsync(name).get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_deletemigrationjob_migrationjobname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJobString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJobString.java
new file mode 100644
index 00000000..13c7b475
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/deletemigrationjob/SyncDeleteMigrationJobString.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_deletemigrationjob_string_sync]
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteMigrationJobString {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteMigrationJobString();
+  }
+
+  public static void syncDeleteMigrationJobString() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      String name = MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString();
+      dataMigrationServiceClient.deleteMigrationJobAsync(name).get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_deletemigrationjob_string_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/generatesshscript/AsyncGenerateSshScript.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/generatesshscript/AsyncGenerateSshScript.java
new file mode 100644
index 00000000..3ee1b83d
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/generatesshscript/AsyncGenerateSshScript.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_generatesshscript_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.GenerateSshScriptRequest;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.cloud.clouddms.v1.SshScript;
+
+public class AsyncGenerateSshScript {
+
+  public static void main(String[] args) throws Exception {
+    asyncGenerateSshScript();
+  }
+
+  public static void asyncGenerateSshScript() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      GenerateSshScriptRequest request =
+          GenerateSshScriptRequest.newBuilder()
+              .setMigrationJob(
+                  MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .setVm("vm3767")
+              .setVmPort(563010825)
+              .build();
+      ApiFuture future =
+          dataMigrationServiceClient.generateSshScriptCallable().futureCall(request);
+      // Do something.
+      SshScript response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_generatesshscript_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/generatesshscript/SyncGenerateSshScript.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/generatesshscript/SyncGenerateSshScript.java
new file mode 100644
index 00000000..80a82079
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/generatesshscript/SyncGenerateSshScript.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_generatesshscript_sync]
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.GenerateSshScriptRequest;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.cloud.clouddms.v1.SshScript;
+
+public class SyncGenerateSshScript {
+
+  public static void main(String[] args) throws Exception {
+    syncGenerateSshScript();
+  }
+
+  public static void syncGenerateSshScript() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      GenerateSshScriptRequest request =
+          GenerateSshScriptRequest.newBuilder()
+              .setMigrationJob(
+                  MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .setVm("vm3767")
+              .setVmPort(563010825)
+              .build();
+      SshScript response = dataMigrationServiceClient.generateSshScript(request);
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_generatesshscript_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/AsyncGetConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/AsyncGetConnectionProfile.java
new file mode 100644
index 00000000..e2096aea
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/AsyncGetConnectionProfile.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_getconnectionprofile_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.clouddms.v1.ConnectionProfile;
+import com.google.cloud.clouddms.v1.ConnectionProfileName;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.GetConnectionProfileRequest;
+
+public class AsyncGetConnectionProfile {
+
+  public static void main(String[] args) throws Exception {
+    asyncGetConnectionProfile();
+  }
+
+  public static void asyncGetConnectionProfile() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      GetConnectionProfileRequest request =
+          GetConnectionProfileRequest.newBuilder()
+              .setName(
+                  ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]")
+                      .toString())
+              .build();
+      ApiFuture future =
+          dataMigrationServiceClient.getConnectionProfileCallable().futureCall(request);
+      // Do something.
+      ConnectionProfile response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_getconnectionprofile_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfile.java
new file mode 100644
index 00000000..423cc716
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfile.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_getconnectionprofile_sync]
+import com.google.cloud.clouddms.v1.ConnectionProfile;
+import com.google.cloud.clouddms.v1.ConnectionProfileName;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.GetConnectionProfileRequest;
+
+public class SyncGetConnectionProfile {
+
+  public static void main(String[] args) throws Exception {
+    syncGetConnectionProfile();
+  }
+
+  public static void syncGetConnectionProfile() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      GetConnectionProfileRequest request =
+          GetConnectionProfileRequest.newBuilder()
+              .setName(
+                  ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]")
+                      .toString())
+              .build();
+      ConnectionProfile response = dataMigrationServiceClient.getConnectionProfile(request);
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_getconnectionprofile_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java
new file mode 100644
index 00000000..a6618a98
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_getconnectionprofile_connectionprofilename_sync]
+import com.google.cloud.clouddms.v1.ConnectionProfile;
+import com.google.cloud.clouddms.v1.ConnectionProfileName;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+
+public class SyncGetConnectionProfileConnectionprofilename {
+
+  public static void main(String[] args) throws Exception {
+    syncGetConnectionProfileConnectionprofilename();
+  }
+
+  public static void syncGetConnectionProfileConnectionprofilename() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      ConnectionProfileName name =
+          ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
+      ConnectionProfile response = dataMigrationServiceClient.getConnectionProfile(name);
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_getconnectionprofile_connectionprofilename_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfileString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfileString.java
new file mode 100644
index 00000000..c8783e93
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getconnectionprofile/SyncGetConnectionProfileString.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_getconnectionprofile_string_sync]
+import com.google.cloud.clouddms.v1.ConnectionProfile;
+import com.google.cloud.clouddms.v1.ConnectionProfileName;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+
+public class SyncGetConnectionProfileString {
+
+  public static void main(String[] args) throws Exception {
+    syncGetConnectionProfileString();
+  }
+
+  public static void syncGetConnectionProfileString() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      String name =
+          ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString();
+      ConnectionProfile response = dataMigrationServiceClient.getConnectionProfile(name);
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_getconnectionprofile_string_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/AsyncGetMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/AsyncGetMigrationJob.java
new file mode 100644
index 00000000..fda606d9
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/AsyncGetMigrationJob.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_getmigrationjob_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.GetMigrationJobRequest;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+
+public class AsyncGetMigrationJob {
+
+  public static void main(String[] args) throws Exception {
+    asyncGetMigrationJob();
+  }
+
+  public static void asyncGetMigrationJob() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      GetMigrationJobRequest request =
+          GetMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .build();
+      ApiFuture future =
+          dataMigrationServiceClient.getMigrationJobCallable().futureCall(request);
+      // Do something.
+      MigrationJob response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_getmigrationjob_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJob.java
new file mode 100644
index 00000000..dd6c465a
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJob.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_getmigrationjob_sync]
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.GetMigrationJobRequest;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+
+public class SyncGetMigrationJob {
+
+  public static void main(String[] args) throws Exception {
+    syncGetMigrationJob();
+  }
+
+  public static void syncGetMigrationJob() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      GetMigrationJobRequest request =
+          GetMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .build();
+      MigrationJob response = dataMigrationServiceClient.getMigrationJob(request);
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_getmigrationjob_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJobMigrationjobname.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJobMigrationjobname.java
new file mode 100644
index 00000000..d8935664
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJobMigrationjobname.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_getmigrationjob_migrationjobname_sync]
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+
+public class SyncGetMigrationJobMigrationjobname {
+
+  public static void main(String[] args) throws Exception {
+    syncGetMigrationJobMigrationjobname();
+  }
+
+  public static void syncGetMigrationJobMigrationjobname() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      MigrationJobName name = MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]");
+      MigrationJob response = dataMigrationServiceClient.getMigrationJob(name);
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_getmigrationjob_migrationjobname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJobString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJobString.java
new file mode 100644
index 00000000..d0174269
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/getmigrationjob/SyncGetMigrationJobString.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_getmigrationjob_string_sync]
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+
+public class SyncGetMigrationJobString {
+
+  public static void main(String[] args) throws Exception {
+    syncGetMigrationJobString();
+  }
+
+  public static void syncGetMigrationJobString() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      String name = MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString();
+      MigrationJob response = dataMigrationServiceClient.getMigrationJob(name);
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_getmigrationjob_string_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/AsyncListConnectionProfiles.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/AsyncListConnectionProfiles.java
new file mode 100644
index 00000000..e3934a89
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/AsyncListConnectionProfiles.java
@@ -0,0 +1,57 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_listconnectionprofiles_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.clouddms.v1.ConnectionProfile;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.ListConnectionProfilesRequest;
+import com.google.cloud.clouddms.v1.LocationName;
+
+public class AsyncListConnectionProfiles {
+
+  public static void main(String[] args) throws Exception {
+    asyncListConnectionProfiles();
+  }
+
+  public static void asyncListConnectionProfiles() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      ListConnectionProfilesRequest request =
+          ListConnectionProfilesRequest.newBuilder()
+              .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .setFilter("filter-1274492040")
+              .setOrderBy("orderBy-1207110587")
+              .build();
+      ApiFuture future =
+          dataMigrationServiceClient.listConnectionProfilesPagedCallable().futureCall(request);
+      // Do something.
+      for (ConnectionProfile element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_listconnectionprofiles_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java
new file mode 100644
index 00000000..1e79e71b
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java
@@ -0,0 +1,65 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_listconnectionprofiles_paged_async]
+import com.google.cloud.clouddms.v1.ConnectionProfile;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.ListConnectionProfilesRequest;
+import com.google.cloud.clouddms.v1.ListConnectionProfilesResponse;
+import com.google.cloud.clouddms.v1.LocationName;
+import com.google.common.base.Strings;
+
+public class AsyncListConnectionProfilesPaged {
+
+  public static void main(String[] args) throws Exception {
+    asyncListConnectionProfilesPaged();
+  }
+
+  public static void asyncListConnectionProfilesPaged() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      ListConnectionProfilesRequest request =
+          ListConnectionProfilesRequest.newBuilder()
+              .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .setFilter("filter-1274492040")
+              .setOrderBy("orderBy-1207110587")
+              .build();
+      while (true) {
+        ListConnectionProfilesResponse response =
+            dataMigrationServiceClient.listConnectionProfilesCallable().call(request);
+        for (ConnectionProfile element : response.getConnectionProfilesList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_listconnectionprofiles_paged_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfiles.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfiles.java
new file mode 100644
index 00000000..0c11c431
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfiles.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_listconnectionprofiles_sync]
+import com.google.cloud.clouddms.v1.ConnectionProfile;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.ListConnectionProfilesRequest;
+import com.google.cloud.clouddms.v1.LocationName;
+
+public class SyncListConnectionProfiles {
+
+  public static void main(String[] args) throws Exception {
+    syncListConnectionProfiles();
+  }
+
+  public static void syncListConnectionProfiles() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      ListConnectionProfilesRequest request =
+          ListConnectionProfilesRequest.newBuilder()
+              .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .setFilter("filter-1274492040")
+              .setOrderBy("orderBy-1207110587")
+              .build();
+      for (ConnectionProfile element :
+          dataMigrationServiceClient.listConnectionProfiles(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_listconnectionprofiles_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java
new file mode 100644
index 00000000..951d17dc
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_listconnectionprofiles_locationname_sync]
+import com.google.cloud.clouddms.v1.ConnectionProfile;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.LocationName;
+
+public class SyncListConnectionProfilesLocationname {
+
+  public static void main(String[] args) throws Exception {
+    syncListConnectionProfilesLocationname();
+  }
+
+  public static void syncListConnectionProfilesLocationname() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+      for (ConnectionProfile element :
+          dataMigrationServiceClient.listConnectionProfiles(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_listconnectionprofiles_locationname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfilesString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfilesString.java
new file mode 100644
index 00000000..942ed5e3
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listconnectionprofiles/SyncListConnectionProfilesString.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_listconnectionprofiles_string_sync]
+import com.google.cloud.clouddms.v1.ConnectionProfile;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.LocationName;
+
+public class SyncListConnectionProfilesString {
+
+  public static void main(String[] args) throws Exception {
+    syncListConnectionProfilesString();
+  }
+
+  public static void syncListConnectionProfilesString() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+      for (ConnectionProfile element :
+          dataMigrationServiceClient.listConnectionProfiles(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_listconnectionprofiles_string_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/AsyncListMigrationJobs.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/AsyncListMigrationJobs.java
new file mode 100644
index 00000000..bc4d9714
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/AsyncListMigrationJobs.java
@@ -0,0 +1,57 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_listmigrationjobs_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.ListMigrationJobsRequest;
+import com.google.cloud.clouddms.v1.LocationName;
+import com.google.cloud.clouddms.v1.MigrationJob;
+
+public class AsyncListMigrationJobs {
+
+  public static void main(String[] args) throws Exception {
+    asyncListMigrationJobs();
+  }
+
+  public static void asyncListMigrationJobs() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      ListMigrationJobsRequest request =
+          ListMigrationJobsRequest.newBuilder()
+              .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .setFilter("filter-1274492040")
+              .setOrderBy("orderBy-1207110587")
+              .build();
+      ApiFuture future =
+          dataMigrationServiceClient.listMigrationJobsPagedCallable().futureCall(request);
+      // Do something.
+      for (MigrationJob element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_listmigrationjobs_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/AsyncListMigrationJobsPaged.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/AsyncListMigrationJobsPaged.java
new file mode 100644
index 00000000..ab5d6cf2
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/AsyncListMigrationJobsPaged.java
@@ -0,0 +1,65 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_listmigrationjobs_paged_async]
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.ListMigrationJobsRequest;
+import com.google.cloud.clouddms.v1.ListMigrationJobsResponse;
+import com.google.cloud.clouddms.v1.LocationName;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.common.base.Strings;
+
+public class AsyncListMigrationJobsPaged {
+
+  public static void main(String[] args) throws Exception {
+    asyncListMigrationJobsPaged();
+  }
+
+  public static void asyncListMigrationJobsPaged() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      ListMigrationJobsRequest request =
+          ListMigrationJobsRequest.newBuilder()
+              .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .setFilter("filter-1274492040")
+              .setOrderBy("orderBy-1207110587")
+              .build();
+      while (true) {
+        ListMigrationJobsResponse response =
+            dataMigrationServiceClient.listMigrationJobsCallable().call(request);
+        for (MigrationJob element : response.getMigrationJobsList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_listmigrationjobs_paged_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobs.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobs.java
new file mode 100644
index 00000000..24e23a9f
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobs.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_listmigrationjobs_sync]
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.ListMigrationJobsRequest;
+import com.google.cloud.clouddms.v1.LocationName;
+import com.google.cloud.clouddms.v1.MigrationJob;
+
+public class SyncListMigrationJobs {
+
+  public static void main(String[] args) throws Exception {
+    syncListMigrationJobs();
+  }
+
+  public static void syncListMigrationJobs() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      ListMigrationJobsRequest request =
+          ListMigrationJobsRequest.newBuilder()
+              .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .setFilter("filter-1274492040")
+              .setOrderBy("orderBy-1207110587")
+              .build();
+      for (MigrationJob element :
+          dataMigrationServiceClient.listMigrationJobs(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_listmigrationjobs_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobsLocationname.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobsLocationname.java
new file mode 100644
index 00000000..8f607df5
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobsLocationname.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_listmigrationjobs_locationname_sync]
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.LocationName;
+import com.google.cloud.clouddms.v1.MigrationJob;
+
+public class SyncListMigrationJobsLocationname {
+
+  public static void main(String[] args) throws Exception {
+    syncListMigrationJobsLocationname();
+  }
+
+  public static void syncListMigrationJobsLocationname() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+      for (MigrationJob element :
+          dataMigrationServiceClient.listMigrationJobs(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_listmigrationjobs_locationname_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobsString.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobsString.java
new file mode 100644
index 00000000..42de9c15
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/listmigrationjobs/SyncListMigrationJobsString.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_listmigrationjobs_string_sync]
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.LocationName;
+import com.google.cloud.clouddms.v1.MigrationJob;
+
+public class SyncListMigrationJobsString {
+
+  public static void main(String[] args) throws Exception {
+    syncListMigrationJobsString();
+  }
+
+  public static void syncListMigrationJobsString() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+      for (MigrationJob element :
+          dataMigrationServiceClient.listMigrationJobs(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_listmigrationjobs_string_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/AsyncPromoteMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/AsyncPromoteMigrationJob.java
new file mode 100644
index 00000000..f305794f
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/AsyncPromoteMigrationJob.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_promotemigrationjob_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.cloud.clouddms.v1.PromoteMigrationJobRequest;
+import com.google.longrunning.Operation;
+
+public class AsyncPromoteMigrationJob {
+
+  public static void main(String[] args) throws Exception {
+    asyncPromoteMigrationJob();
+  }
+
+  public static void asyncPromoteMigrationJob() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      PromoteMigrationJobRequest request =
+          PromoteMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .build();
+      ApiFuture future =
+          dataMigrationServiceClient.promoteMigrationJobCallable().futureCall(request);
+      // Do something.
+      Operation response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_promotemigrationjob_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/AsyncPromoteMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/AsyncPromoteMigrationJobLRO.java
new file mode 100644
index 00000000..739d10e4
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/AsyncPromoteMigrationJobLRO.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_promotemigrationjob_lro_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.cloud.clouddms.v1.OperationMetadata;
+import com.google.cloud.clouddms.v1.PromoteMigrationJobRequest;
+
+public class AsyncPromoteMigrationJobLRO {
+
+  public static void main(String[] args) throws Exception {
+    asyncPromoteMigrationJobLRO();
+  }
+
+  public static void asyncPromoteMigrationJobLRO() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      PromoteMigrationJobRequest request =
+          PromoteMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .build();
+      OperationFuture future =
+          dataMigrationServiceClient.promoteMigrationJobOperationCallable().futureCall(request);
+      // Do something.
+      MigrationJob response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_promotemigrationjob_lro_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/SyncPromoteMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/SyncPromoteMigrationJob.java
new file mode 100644
index 00000000..bed2e779
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/promotemigrationjob/SyncPromoteMigrationJob.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_promotemigrationjob_sync]
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.cloud.clouddms.v1.PromoteMigrationJobRequest;
+
+public class SyncPromoteMigrationJob {
+
+  public static void main(String[] args) throws Exception {
+    syncPromoteMigrationJob();
+  }
+
+  public static void syncPromoteMigrationJob() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      PromoteMigrationJobRequest request =
+          PromoteMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .build();
+      MigrationJob response = dataMigrationServiceClient.promoteMigrationJobAsync(request).get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_promotemigrationjob_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/AsyncRestartMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/AsyncRestartMigrationJob.java
new file mode 100644
index 00000000..2f4fbaf4
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/AsyncRestartMigrationJob.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_restartmigrationjob_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.cloud.clouddms.v1.RestartMigrationJobRequest;
+import com.google.longrunning.Operation;
+
+public class AsyncRestartMigrationJob {
+
+  public static void main(String[] args) throws Exception {
+    asyncRestartMigrationJob();
+  }
+
+  public static void asyncRestartMigrationJob() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      RestartMigrationJobRequest request =
+          RestartMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .build();
+      ApiFuture future =
+          dataMigrationServiceClient.restartMigrationJobCallable().futureCall(request);
+      // Do something.
+      Operation response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_restartmigrationjob_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/AsyncRestartMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/AsyncRestartMigrationJobLRO.java
new file mode 100644
index 00000000..2a9c8b48
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/AsyncRestartMigrationJobLRO.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_restartmigrationjob_lro_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.cloud.clouddms.v1.OperationMetadata;
+import com.google.cloud.clouddms.v1.RestartMigrationJobRequest;
+
+public class AsyncRestartMigrationJobLRO {
+
+  public static void main(String[] args) throws Exception {
+    asyncRestartMigrationJobLRO();
+  }
+
+  public static void asyncRestartMigrationJobLRO() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      RestartMigrationJobRequest request =
+          RestartMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .build();
+      OperationFuture future =
+          dataMigrationServiceClient.restartMigrationJobOperationCallable().futureCall(request);
+      // Do something.
+      MigrationJob response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_restartmigrationjob_lro_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/SyncRestartMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/SyncRestartMigrationJob.java
new file mode 100644
index 00000000..2a24bc3e
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/restartmigrationjob/SyncRestartMigrationJob.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_restartmigrationjob_sync]
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.cloud.clouddms.v1.RestartMigrationJobRequest;
+
+public class SyncRestartMigrationJob {
+
+  public static void main(String[] args) throws Exception {
+    syncRestartMigrationJob();
+  }
+
+  public static void syncRestartMigrationJob() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      RestartMigrationJobRequest request =
+          RestartMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .build();
+      MigrationJob response = dataMigrationServiceClient.restartMigrationJobAsync(request).get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_restartmigrationjob_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/AsyncResumeMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/AsyncResumeMigrationJob.java
new file mode 100644
index 00000000..271fe4c7
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/AsyncResumeMigrationJob.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_resumemigrationjob_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.cloud.clouddms.v1.ResumeMigrationJobRequest;
+import com.google.longrunning.Operation;
+
+public class AsyncResumeMigrationJob {
+
+  public static void main(String[] args) throws Exception {
+    asyncResumeMigrationJob();
+  }
+
+  public static void asyncResumeMigrationJob() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      ResumeMigrationJobRequest request =
+          ResumeMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .build();
+      ApiFuture future =
+          dataMigrationServiceClient.resumeMigrationJobCallable().futureCall(request);
+      // Do something.
+      Operation response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_resumemigrationjob_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/AsyncResumeMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/AsyncResumeMigrationJobLRO.java
new file mode 100644
index 00000000..39281ad5
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/AsyncResumeMigrationJobLRO.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_resumemigrationjob_lro_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.cloud.clouddms.v1.OperationMetadata;
+import com.google.cloud.clouddms.v1.ResumeMigrationJobRequest;
+
+public class AsyncResumeMigrationJobLRO {
+
+  public static void main(String[] args) throws Exception {
+    asyncResumeMigrationJobLRO();
+  }
+
+  public static void asyncResumeMigrationJobLRO() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      ResumeMigrationJobRequest request =
+          ResumeMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .build();
+      OperationFuture future =
+          dataMigrationServiceClient.resumeMigrationJobOperationCallable().futureCall(request);
+      // Do something.
+      MigrationJob response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_resumemigrationjob_lro_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/SyncResumeMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/SyncResumeMigrationJob.java
new file mode 100644
index 00000000..ecb7ec69
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/resumemigrationjob/SyncResumeMigrationJob.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_resumemigrationjob_sync]
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.cloud.clouddms.v1.ResumeMigrationJobRequest;
+
+public class SyncResumeMigrationJob {
+
+  public static void main(String[] args) throws Exception {
+    syncResumeMigrationJob();
+  }
+
+  public static void syncResumeMigrationJob() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      ResumeMigrationJobRequest request =
+          ResumeMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .build();
+      MigrationJob response = dataMigrationServiceClient.resumeMigrationJobAsync(request).get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_resumemigrationjob_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/AsyncStartMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/AsyncStartMigrationJob.java
new file mode 100644
index 00000000..0672a9a5
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/AsyncStartMigrationJob.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_startmigrationjob_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.cloud.clouddms.v1.StartMigrationJobRequest;
+import com.google.longrunning.Operation;
+
+public class AsyncStartMigrationJob {
+
+  public static void main(String[] args) throws Exception {
+    asyncStartMigrationJob();
+  }
+
+  public static void asyncStartMigrationJob() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      StartMigrationJobRequest request =
+          StartMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .build();
+      ApiFuture future =
+          dataMigrationServiceClient.startMigrationJobCallable().futureCall(request);
+      // Do something.
+      Operation response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_startmigrationjob_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/AsyncStartMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/AsyncStartMigrationJobLRO.java
new file mode 100644
index 00000000..8a6a645c
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/AsyncStartMigrationJobLRO.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_startmigrationjob_lro_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.cloud.clouddms.v1.OperationMetadata;
+import com.google.cloud.clouddms.v1.StartMigrationJobRequest;
+
+public class AsyncStartMigrationJobLRO {
+
+  public static void main(String[] args) throws Exception {
+    asyncStartMigrationJobLRO();
+  }
+
+  public static void asyncStartMigrationJobLRO() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      StartMigrationJobRequest request =
+          StartMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .build();
+      OperationFuture future =
+          dataMigrationServiceClient.startMigrationJobOperationCallable().futureCall(request);
+      // Do something.
+      MigrationJob response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_startmigrationjob_lro_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/SyncStartMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/SyncStartMigrationJob.java
new file mode 100644
index 00000000..1f2fd78e
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/startmigrationjob/SyncStartMigrationJob.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_startmigrationjob_sync]
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.cloud.clouddms.v1.StartMigrationJobRequest;
+
+public class SyncStartMigrationJob {
+
+  public static void main(String[] args) throws Exception {
+    syncStartMigrationJob();
+  }
+
+  public static void syncStartMigrationJob() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      StartMigrationJobRequest request =
+          StartMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .build();
+      MigrationJob response = dataMigrationServiceClient.startMigrationJobAsync(request).get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_startmigrationjob_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/AsyncStopMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/AsyncStopMigrationJob.java
new file mode 100644
index 00000000..88983793
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/AsyncStopMigrationJob.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_stopmigrationjob_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.cloud.clouddms.v1.StopMigrationJobRequest;
+import com.google.longrunning.Operation;
+
+public class AsyncStopMigrationJob {
+
+  public static void main(String[] args) throws Exception {
+    asyncStopMigrationJob();
+  }
+
+  public static void asyncStopMigrationJob() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      StopMigrationJobRequest request =
+          StopMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .build();
+      ApiFuture future =
+          dataMigrationServiceClient.stopMigrationJobCallable().futureCall(request);
+      // Do something.
+      Operation response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_stopmigrationjob_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/AsyncStopMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/AsyncStopMigrationJobLRO.java
new file mode 100644
index 00000000..cd9e12d9
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/AsyncStopMigrationJobLRO.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_stopmigrationjob_lro_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.cloud.clouddms.v1.OperationMetadata;
+import com.google.cloud.clouddms.v1.StopMigrationJobRequest;
+
+public class AsyncStopMigrationJobLRO {
+
+  public static void main(String[] args) throws Exception {
+    asyncStopMigrationJobLRO();
+  }
+
+  public static void asyncStopMigrationJobLRO() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      StopMigrationJobRequest request =
+          StopMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .build();
+      OperationFuture future =
+          dataMigrationServiceClient.stopMigrationJobOperationCallable().futureCall(request);
+      // Do something.
+      MigrationJob response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_stopmigrationjob_lro_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/SyncStopMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/SyncStopMigrationJob.java
new file mode 100644
index 00000000..15f9d506
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/stopmigrationjob/SyncStopMigrationJob.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_stopmigrationjob_sync]
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.cloud.clouddms.v1.StopMigrationJobRequest;
+
+public class SyncStopMigrationJob {
+
+  public static void main(String[] args) throws Exception {
+    syncStopMigrationJob();
+  }
+
+  public static void syncStopMigrationJob() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      StopMigrationJobRequest request =
+          StopMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .build();
+      MigrationJob response = dataMigrationServiceClient.stopMigrationJobAsync(request).get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_stopmigrationjob_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java
new file mode 100644
index 00000000..ca513f48
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_updateconnectionprofile_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.clouddms.v1.ConnectionProfile;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest;
+import com.google.longrunning.Operation;
+import com.google.protobuf.FieldMask;
+
+public class AsyncUpdateConnectionProfile {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateConnectionProfile();
+  }
+
+  public static void asyncUpdateConnectionProfile() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      UpdateConnectionProfileRequest request =
+          UpdateConnectionProfileRequest.newBuilder()
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .setConnectionProfile(ConnectionProfile.newBuilder().build())
+              .setRequestId("requestId693933066")
+              .build();
+      ApiFuture future =
+          dataMigrationServiceClient.updateConnectionProfileCallable().futureCall(request);
+      // Do something.
+      Operation response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_updateconnectionprofile_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java
new file mode 100644
index 00000000..c9b8d206
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_updateconnectionprofile_lro_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.clouddms.v1.ConnectionProfile;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.OperationMetadata;
+import com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest;
+import com.google.protobuf.FieldMask;
+
+public class AsyncUpdateConnectionProfileLRO {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateConnectionProfileLRO();
+  }
+
+  public static void asyncUpdateConnectionProfileLRO() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      UpdateConnectionProfileRequest request =
+          UpdateConnectionProfileRequest.newBuilder()
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .setConnectionProfile(ConnectionProfile.newBuilder().build())
+              .setRequestId("requestId693933066")
+              .build();
+      OperationFuture future =
+          dataMigrationServiceClient.updateConnectionProfileOperationCallable().futureCall(request);
+      // Do something.
+      ConnectionProfile response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_updateconnectionprofile_lro_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/SyncUpdateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/SyncUpdateConnectionProfile.java
new file mode 100644
index 00000000..76111400
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/SyncUpdateConnectionProfile.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_updateconnectionprofile_sync]
+import com.google.cloud.clouddms.v1.ConnectionProfile;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateConnectionProfile {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateConnectionProfile();
+  }
+
+  public static void syncUpdateConnectionProfile() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      UpdateConnectionProfileRequest request =
+          UpdateConnectionProfileRequest.newBuilder()
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .setConnectionProfile(ConnectionProfile.newBuilder().build())
+              .setRequestId("requestId693933066")
+              .build();
+      ConnectionProfile response =
+          dataMigrationServiceClient.updateConnectionProfileAsync(request).get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_updateconnectionprofile_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java
new file mode 100644
index 00000000..c2559b15
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_updateconnectionprofile_connectionprofilefieldmask_sync]
+import com.google.cloud.clouddms.v1.ConnectionProfile;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateConnectionProfileConnectionprofileFieldmask {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateConnectionProfileConnectionprofileFieldmask();
+  }
+
+  public static void syncUpdateConnectionProfileConnectionprofileFieldmask() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build();
+      FieldMask updateMask = FieldMask.newBuilder().build();
+      ConnectionProfile response =
+          dataMigrationServiceClient
+              .updateConnectionProfileAsync(connectionProfile, updateMask)
+              .get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_updateconnectionprofile_connectionprofilefieldmask_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/AsyncUpdateMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/AsyncUpdateMigrationJob.java
new file mode 100644
index 00000000..b2139601
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/AsyncUpdateMigrationJob.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_updatemigrationjob_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.cloud.clouddms.v1.UpdateMigrationJobRequest;
+import com.google.longrunning.Operation;
+import com.google.protobuf.FieldMask;
+
+public class AsyncUpdateMigrationJob {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateMigrationJob();
+  }
+
+  public static void asyncUpdateMigrationJob() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      UpdateMigrationJobRequest request =
+          UpdateMigrationJobRequest.newBuilder()
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .setMigrationJob(MigrationJob.newBuilder().build())
+              .setRequestId("requestId693933066")
+              .build();
+      ApiFuture future =
+          dataMigrationServiceClient.updateMigrationJobCallable().futureCall(request);
+      // Do something.
+      Operation response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_updatemigrationjob_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/AsyncUpdateMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/AsyncUpdateMigrationJobLRO.java
new file mode 100644
index 00000000..16061473
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/AsyncUpdateMigrationJobLRO.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_updatemigrationjob_lro_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.cloud.clouddms.v1.OperationMetadata;
+import com.google.cloud.clouddms.v1.UpdateMigrationJobRequest;
+import com.google.protobuf.FieldMask;
+
+public class AsyncUpdateMigrationJobLRO {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateMigrationJobLRO();
+  }
+
+  public static void asyncUpdateMigrationJobLRO() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      UpdateMigrationJobRequest request =
+          UpdateMigrationJobRequest.newBuilder()
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .setMigrationJob(MigrationJob.newBuilder().build())
+              .setRequestId("requestId693933066")
+              .build();
+      OperationFuture future =
+          dataMigrationServiceClient.updateMigrationJobOperationCallable().futureCall(request);
+      // Do something.
+      MigrationJob response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_updatemigrationjob_lro_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/SyncUpdateMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/SyncUpdateMigrationJob.java
new file mode 100644
index 00000000..a2545f7e
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/SyncUpdateMigrationJob.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_updatemigrationjob_sync]
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.cloud.clouddms.v1.UpdateMigrationJobRequest;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateMigrationJob {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateMigrationJob();
+  }
+
+  public static void syncUpdateMigrationJob() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      UpdateMigrationJobRequest request =
+          UpdateMigrationJobRequest.newBuilder()
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .setMigrationJob(MigrationJob.newBuilder().build())
+              .setRequestId("requestId693933066")
+              .build();
+      MigrationJob response = dataMigrationServiceClient.updateMigrationJobAsync(request).get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_updatemigrationjob_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/SyncUpdateMigrationJobMigrationjobFieldmask.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/SyncUpdateMigrationJobMigrationjobFieldmask.java
new file mode 100644
index 00000000..3a7b8ebe
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/updatemigrationjob/SyncUpdateMigrationJobMigrationjobFieldmask.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_updatemigrationjob_migrationjobfieldmask_sync]
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateMigrationJobMigrationjobFieldmask {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateMigrationJobMigrationjobFieldmask();
+  }
+
+  public static void syncUpdateMigrationJobMigrationjobFieldmask() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      MigrationJob migrationJob = MigrationJob.newBuilder().build();
+      FieldMask updateMask = FieldMask.newBuilder().build();
+      MigrationJob response =
+          dataMigrationServiceClient.updateMigrationJobAsync(migrationJob, updateMask).get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_updatemigrationjob_migrationjobfieldmask_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/AsyncVerifyMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/AsyncVerifyMigrationJob.java
new file mode 100644
index 00000000..8891608c
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/AsyncVerifyMigrationJob.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_verifymigrationjob_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.cloud.clouddms.v1.VerifyMigrationJobRequest;
+import com.google.longrunning.Operation;
+
+public class AsyncVerifyMigrationJob {
+
+  public static void main(String[] args) throws Exception {
+    asyncVerifyMigrationJob();
+  }
+
+  public static void asyncVerifyMigrationJob() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      VerifyMigrationJobRequest request =
+          VerifyMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .build();
+      ApiFuture future =
+          dataMigrationServiceClient.verifyMigrationJobCallable().futureCall(request);
+      // Do something.
+      Operation response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_verifymigrationjob_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/AsyncVerifyMigrationJobLRO.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/AsyncVerifyMigrationJobLRO.java
new file mode 100644
index 00000000..8ec5798e
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/AsyncVerifyMigrationJobLRO.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_verifymigrationjob_lro_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.cloud.clouddms.v1.OperationMetadata;
+import com.google.cloud.clouddms.v1.VerifyMigrationJobRequest;
+
+public class AsyncVerifyMigrationJobLRO {
+
+  public static void main(String[] args) throws Exception {
+    asyncVerifyMigrationJobLRO();
+  }
+
+  public static void asyncVerifyMigrationJobLRO() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      VerifyMigrationJobRequest request =
+          VerifyMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .build();
+      OperationFuture future =
+          dataMigrationServiceClient.verifyMigrationJobOperationCallable().futureCall(request);
+      // Do something.
+      MigrationJob response = future.get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_verifymigrationjob_lro_async]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/SyncVerifyMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/SyncVerifyMigrationJob.java
new file mode 100644
index 00000000..36118d5f
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationserviceclient/verifymigrationjob/SyncVerifyMigrationJob.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationserviceclient_verifymigrationjob_sync]
+import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
+import com.google.cloud.clouddms.v1.MigrationJob;
+import com.google.cloud.clouddms.v1.MigrationJobName;
+import com.google.cloud.clouddms.v1.VerifyMigrationJobRequest;
+
+public class SyncVerifyMigrationJob {
+
+  public static void main(String[] args) throws Exception {
+    syncVerifyMigrationJob();
+  }
+
+  public static void syncVerifyMigrationJob() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    try (DataMigrationServiceClient dataMigrationServiceClient =
+        DataMigrationServiceClient.create()) {
+      VerifyMigrationJobRequest request =
+          VerifyMigrationJobRequest.newBuilder()
+              .setName(MigrationJobName.of("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]").toString())
+              .build();
+      MigrationJob response = dataMigrationServiceClient.verifyMigrationJobAsync(request).get();
+    }
+  }
+}
+// [END clouddms_v1_generated_datamigrationserviceclient_verifymigrationjob_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservicesettings/getmigrationjob/SyncGetMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservicesettings/getmigrationjob/SyncGetMigrationJob.java
new file mode 100644
index 00000000..366de98e
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/datamigrationservicesettings/getmigrationjob/SyncGetMigrationJob.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.samples;
+
+// [START clouddms_v1_generated_datamigrationservicesettings_getmigrationjob_sync]
+import com.google.cloud.clouddms.v1.DataMigrationServiceSettings;
+import java.time.Duration;
+
+public class SyncGetMigrationJob {
+
+  public static void main(String[] args) throws Exception {
+    syncGetMigrationJob();
+  }
+
+  public static void syncGetMigrationJob() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    DataMigrationServiceSettings.Builder dataMigrationServiceSettingsBuilder =
+        DataMigrationServiceSettings.newBuilder();
+    dataMigrationServiceSettingsBuilder
+        .getMigrationJobSettings()
+        .setRetrySettings(
+            dataMigrationServiceSettingsBuilder
+                .getMigrationJobSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    DataMigrationServiceSettings dataMigrationServiceSettings =
+        dataMigrationServiceSettingsBuilder.build();
+  }
+}
+// [END clouddms_v1_generated_datamigrationservicesettings_getmigrationjob_sync]
diff --git a/samples/snippets/generated/com/google/cloud/clouddms/v1/stub/datamigrationservicestubsettings/getmigrationjob/SyncGetMigrationJob.java b/samples/snippets/generated/com/google/cloud/clouddms/v1/stub/datamigrationservicestubsettings/getmigrationjob/SyncGetMigrationJob.java
new file mode 100644
index 00000000..324269e0
--- /dev/null
+++ b/samples/snippets/generated/com/google/cloud/clouddms/v1/stub/datamigrationservicestubsettings/getmigrationjob/SyncGetMigrationJob.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.clouddms.v1.stub.samples;
+
+// [START clouddms_v1_generated_datamigrationservicestubsettings_getmigrationjob_sync]
+import com.google.cloud.clouddms.v1.stub.DataMigrationServiceStubSettings;
+import java.time.Duration;
+
+public class SyncGetMigrationJob {
+
+  public static void main(String[] args) throws Exception {
+    syncGetMigrationJob();
+  }
+
+  public static void syncGetMigrationJob() throws Exception {
+    // This snippet has been automatically generated and should be regarded as a code template only.
+    // It will require modifications to work:
+    // - It may require correct/in-range values for request initialization.
+    // - It may require specifying regional endpoints when creating the service client as shown in
+    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+    DataMigrationServiceStubSettings.Builder dataMigrationServiceSettingsBuilder =
+        DataMigrationServiceStubSettings.newBuilder();
+    dataMigrationServiceSettingsBuilder
+        .getMigrationJobSettings()
+        .setRetrySettings(
+            dataMigrationServiceSettingsBuilder
+                .getMigrationJobSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    DataMigrationServiceStubSettings dataMigrationServiceSettings =
+        dataMigrationServiceSettingsBuilder.build();
+  }
+}
+// [END clouddms_v1_generated_datamigrationservicestubsettings_getmigrationjob_sync]
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 35d5cd10..0003cbaf 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -28,7 +28,7 @@
     
       com.google.cloud
       google-cloud-dms
-      2.2.1
+      2.2.3
     
 
     
diff --git a/versions.txt b/versions.txt
index c869e7e9..3bb63c17 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,6 +1,6 @@
 # Format:
 # module:released-version:current-version
 
-google-cloud-dms:2.2.3:2.2.3
-grpc-google-cloud-dms-v1:2.2.3:2.2.3
-proto-google-cloud-dms-v1:2.2.3:2.2.3
+google-cloud-dms:2.2.4:2.2.4
+grpc-google-cloud-dms-v1:2.2.4:2.2.4
+proto-google-cloud-dms-v1:2.2.4:2.2.4