From c115d5f6324d3423d5034f9f8187217f32d9e20c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 28 Jun 2022 04:16:15 +0000 Subject: [PATCH] fix: update gapic-generator-java with mock service generation fixes (#450) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 457524730 Source-Link: https://github.com/googleapis/googleapis/commit/917e7f21cb1dc062744c6694437cdd46219f28cb Source-Link: https://github.com/googleapis/googleapis-gen/commit/2497f9a069d3f6b2d6810d5a4e239cda1e7e5a39 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjQ5N2Y5YTA2OWQzZjZiMmQ2ODEwZDVhNGUyMzljZGExZTdlNWEzOSJ9 --- .../assuredworkloads/v1/AssuredWorkloadsServiceClient.java | 2 ++ .../v1beta1/AssuredWorkloadsServiceClient.java | 1 + .../create/SyncCreateSetCredentialsProvider.java | 6 ++---- .../create/SyncCreateSetCredentialsProvider1.java | 6 ++---- .../SyncCreateWorkloadLocationnameWorkload.java | 6 ++---- .../createworkload/SyncCreateWorkloadStringWorkload.java | 6 ++---- .../deleteworkload/SyncDeleteWorkload.java | 1 + .../deleteworkload/SyncDeleteWorkloadString.java | 1 + .../deleteworkload/SyncDeleteWorkloadWorkloadname.java | 7 +++---- .../listworkloads/SyncListWorkloadsLocationname.java | 3 +-- .../SyncUpdateWorkloadWorkloadFieldmask.java | 6 ++---- .../create/SyncCreateSetCredentialsProvider.java | 6 ++---- .../create/SyncCreateSetCredentialsProvider1.java | 6 ++---- .../SyncCreateWorkloadLocationnameWorkload.java | 6 ++---- .../createworkload/SyncCreateWorkloadStringWorkload.java | 6 ++---- .../deleteworkload/SyncDeleteWorkload.java | 1 + .../deleteworkload/SyncDeleteWorkloadString.java | 4 ++-- .../deleteworkload/SyncDeleteWorkloadWorkloadname.java | 7 +++---- .../getworkload/SyncGetWorkloadWorkloadname.java | 6 ++---- .../listworkloads/AsyncListWorkloadsPaged.java | 3 +-- .../listworkloads/SyncListWorkloadsLocationname.java | 6 ++---- .../listworkloads/SyncListWorkloadsString.java | 3 +-- .../SyncUpdateWorkloadWorkloadFieldmask.java | 6 ++---- .../updateworkload/SyncUpdateWorkload.java | 3 +-- 24 files changed, 42 insertions(+), 66 deletions(-) diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClient.java b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClient.java index 1996ed87e71d..57a649d99f7b 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClient.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/AssuredWorkloadsServiceClient.java @@ -18,6 +18,7 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; @@ -195,6 +196,7 @@ public final com.google.longrunning.OperationsClient getOperationsClient() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ + @BetaApi public final OperationsClient getHttpJsonOperationsClient() { return httpJsonOperationsClient; } diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java index c227a2a63cb3..b41ce8225317 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java @@ -197,6 +197,7 @@ public final com.google.longrunning.OperationsClient getOperationsClient() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ + @BetaApi public final OperationsClient getHttpJsonOperationsClient() { return httpJsonOperationsClient; } diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java index 9c6c3750eb3e..360a69cebd55 100644 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -16,8 +16,7 @@ package com.google.cloud.assuredworkloads.v1.samples; -// [START -// assuredworkloads_v1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider_sync] +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceSettings; @@ -40,5 +39,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception { AssuredWorkloadsServiceClient.create(assuredWorkloadsServiceSettings); } } -// [END -// assuredworkloads_v1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider_sync] +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider_sync] diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java index d9cfc7144ef4..36a9c4e3a7a5 100644 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -16,8 +16,7 @@ package com.google.cloud.assuredworkloads.v1.samples; -// [START -// assuredworkloads_v1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider1_sync] +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider1_sync] import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceSettings; @@ -39,5 +38,4 @@ public static void syncCreateSetCredentialsProvider1() throws Exception { AssuredWorkloadsServiceClient.create(assuredWorkloadsServiceSettings); } } -// [END -// assuredworkloads_v1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider1_sync] +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider1_sync] diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java index aaf4d9146226..00a426a799d3 100644 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java @@ -16,8 +16,7 @@ package com.google.cloud.assuredworkloads.v1.samples; -// [START -// assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_locationnameworkload_sync] +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_locationnameworkload_sync] import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1.LocationName; import com.google.cloud.assuredworkloads.v1.Workload; @@ -39,5 +38,4 @@ public static void syncCreateWorkloadLocationnameWorkload() throws Exception { } } } -// [END -// assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_locationnameworkload_sync] +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_locationnameworkload_sync] diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java index 66af260762cb..162dad0b716d 100644 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java @@ -16,8 +16,7 @@ package com.google.cloud.assuredworkloads.v1.samples; -// [START -// assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_stringworkload_sync] +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_stringworkload_sync] import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1.LocationName; import com.google.cloud.assuredworkloads.v1.Workload; @@ -39,5 +38,4 @@ public static void syncCreateWorkloadStringWorkload() throws Exception { } } } -// [END -// assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_stringworkload_sync] +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_createworkload_stringworkload_sync] diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java index ae1b6230d6b8..c902ca420b82 100644 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java @@ -20,6 +20,7 @@ import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1.DeleteWorkloadRequest; import com.google.cloud.assuredworkloads.v1.WorkloadName; +import com.google.protobuf.Empty; public class SyncDeleteWorkload { diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java index 94fa3b0924cc..20a7f9437557 100644 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java @@ -19,6 +19,7 @@ // [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_deleteworkload_string_sync] import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1.WorkloadName; +import com.google.protobuf.Empty; public class SyncDeleteWorkloadString { diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java index 2eda0d3c00f0..b9b3bd0d114e 100644 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java @@ -16,10 +16,10 @@ package com.google.cloud.assuredworkloads.v1.samples; -// [START -// assuredworkloads_v1_generated_assuredworkloadsserviceclient_deleteworkload_workloadname_sync] +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_deleteworkload_workloadname_sync] import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1.WorkloadName; +import com.google.protobuf.Empty; public class SyncDeleteWorkloadWorkloadname { @@ -37,5 +37,4 @@ public static void syncDeleteWorkloadWorkloadname() throws Exception { } } } -// [END -// assuredworkloads_v1_generated_assuredworkloadsserviceclient_deleteworkload_workloadname_sync] +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_deleteworkload_workloadname_sync] diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java index a8ec2c099f96..812e8463fd23 100644 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java @@ -16,8 +16,7 @@ package com.google.cloud.assuredworkloads.v1.samples; -// [START -// assuredworkloads_v1_generated_assuredworkloadsserviceclient_listworkloads_locationname_sync] +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_listworkloads_locationname_sync] import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1.LocationName; import com.google.cloud.assuredworkloads.v1.Workload; diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java index 5e814a655b79..752236cf9d7d 100644 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java @@ -16,8 +16,7 @@ package com.google.cloud.assuredworkloads.v1.samples; -// [START -// assuredworkloads_v1_generated_assuredworkloadsserviceclient_updateworkload_workloadfieldmask_sync] +// [START assuredworkloads_v1_generated_assuredworkloadsserviceclient_updateworkload_workloadfieldmask_sync] import com.google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1.Workload; import com.google.protobuf.FieldMask; @@ -39,5 +38,4 @@ public static void syncUpdateWorkloadWorkloadFieldmask() throws Exception { } } } -// [END -// assuredworkloads_v1_generated_assuredworkloadsserviceclient_updateworkload_workloadfieldmask_sync] +// [END assuredworkloads_v1_generated_assuredworkloadsserviceclient_updateworkload_workloadfieldmask_sync] diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java index eb78da5cbb9f..cd6275419d38 100644 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -16,8 +16,7 @@ package com.google.cloud.assuredworkloads.v1beta1.samples; -// [START -// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider_sync] +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider_sync] import com.google.api.gax.core.FixedCredentialsProvider; import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceSettings; @@ -40,5 +39,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception { AssuredWorkloadsServiceClient.create(assuredWorkloadsServiceSettings); } } -// [END -// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider_sync] +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider_sync] diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java index 4001772cf26a..0018e402f3d7 100644 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -16,8 +16,7 @@ package com.google.cloud.assuredworkloads.v1beta1.samples; -// [START -// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider1_sync] +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider1_sync] import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceSettings; @@ -39,5 +38,4 @@ public static void syncCreateSetCredentialsProvider1() throws Exception { AssuredWorkloadsServiceClient.create(assuredWorkloadsServiceSettings); } } -// [END -// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider1_sync] +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_create_setcredentialsprovider1_sync] diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java index 6bf9a1920482..b4b5d95e75f1 100644 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadLocationnameWorkload.java @@ -16,8 +16,7 @@ package com.google.cloud.assuredworkloads.v1beta1.samples; -// [START -// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_locationnameworkload_sync] +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_locationnameworkload_sync] import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.LocationName; import com.google.cloud.assuredworkloads.v1beta1.Workload; @@ -39,5 +38,4 @@ public static void syncCreateWorkloadLocationnameWorkload() throws Exception { } } } -// [END -// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_locationnameworkload_sync] +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_locationnameworkload_sync] diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java index a8c05283ce4b..1fdde36dcb93 100644 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/createworkload/SyncCreateWorkloadStringWorkload.java @@ -16,8 +16,7 @@ package com.google.cloud.assuredworkloads.v1beta1.samples; -// [START -// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_stringworkload_sync] +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_stringworkload_sync] import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.LocationName; import com.google.cloud.assuredworkloads.v1beta1.Workload; @@ -39,5 +38,4 @@ public static void syncCreateWorkloadStringWorkload() throws Exception { } } } -// [END -// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_stringworkload_sync] +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_createworkload_stringworkload_sync] diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java index f3a0289ec081..e3d76f1970ea 100644 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkload.java @@ -20,6 +20,7 @@ import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest; import com.google.cloud.assuredworkloads.v1beta1.WorkloadName; +import com.google.protobuf.Empty; public class SyncDeleteWorkload { diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java index 4add015a415b..1afba608e42a 100644 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadString.java @@ -16,10 +16,10 @@ package com.google.cloud.assuredworkloads.v1beta1.samples; -// [START -// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_deleteworkload_string_sync] +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_deleteworkload_string_sync] import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.WorkloadName; +import com.google.protobuf.Empty; public class SyncDeleteWorkloadString { diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java index 1768da2254c8..934db95d2494 100644 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/deleteworkload/SyncDeleteWorkloadWorkloadname.java @@ -16,10 +16,10 @@ package com.google.cloud.assuredworkloads.v1beta1.samples; -// [START -// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_deleteworkload_workloadname_sync] +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_deleteworkload_workloadname_sync] import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.WorkloadName; +import com.google.protobuf.Empty; public class SyncDeleteWorkloadWorkloadname { @@ -37,5 +37,4 @@ public static void syncDeleteWorkloadWorkloadname() throws Exception { } } } -// [END -// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_deleteworkload_workloadname_sync] +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_deleteworkload_workloadname_sync] diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java index fb95f4f37dfe..7853d52500cf 100644 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/getworkload/SyncGetWorkloadWorkloadname.java @@ -16,8 +16,7 @@ package com.google.cloud.assuredworkloads.v1beta1.samples; -// [START -// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_getworkload_workloadname_sync] +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_getworkload_workloadname_sync] import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.Workload; import com.google.cloud.assuredworkloads.v1beta1.WorkloadName; @@ -38,5 +37,4 @@ public static void syncGetWorkloadWorkloadname() throws Exception { } } } -// [END -// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_getworkload_workloadname_sync] +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_getworkload_workloadname_sync] diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java index 6bda848c1ff1..bf2996e77cbc 100644 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/AsyncListWorkloadsPaged.java @@ -16,8 +16,7 @@ package com.google.cloud.assuredworkloads.v1beta1.samples; -// [START -// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_paged_async] +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_paged_async] import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest; import com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse; diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java index 8ee1a108dece..95697fd986d9 100644 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsLocationname.java @@ -16,8 +16,7 @@ package com.google.cloud.assuredworkloads.v1beta1.samples; -// [START -// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_locationname_sync] +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_locationname_sync] import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.LocationName; import com.google.cloud.assuredworkloads.v1beta1.Workload; @@ -40,5 +39,4 @@ public static void syncListWorkloadsLocationname() throws Exception { } } } -// [END -// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_locationname_sync] +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_locationname_sync] diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java index 920dcd7257fd..a8924e7b01b0 100644 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/listworkloads/SyncListWorkloadsString.java @@ -16,8 +16,7 @@ package com.google.cloud.assuredworkloads.v1beta1.samples; -// [START -// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_string_sync] +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_listworkloads_string_sync] import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.LocationName; import com.google.cloud.assuredworkloads.v1beta1.Workload; diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java index 2eaa7984e0e2..da0a15725c9e 100644 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/updateworkload/SyncUpdateWorkloadWorkloadFieldmask.java @@ -16,8 +16,7 @@ package com.google.cloud.assuredworkloads.v1beta1.samples; -// [START -// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_updateworkload_workloadfieldmask_sync] +// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_updateworkload_workloadfieldmask_sync] import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; import com.google.cloud.assuredworkloads.v1beta1.Workload; import com.google.protobuf.FieldMask; @@ -39,5 +38,4 @@ public static void syncUpdateWorkloadWorkloadFieldmask() throws Exception { } } } -// [END -// assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_updateworkload_workloadfieldmask_sync] +// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_updateworkload_workloadfieldmask_sync] diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java index 1a248c4a4553..81eaf349fcf8 100644 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java +++ b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/stub/assuredworkloadsservicestubsettings/updateworkload/SyncUpdateWorkload.java @@ -16,8 +16,7 @@ package com.google.cloud.assuredworkloads.v1beta1.stub.samples; -// [START -// assuredworkloads_v1beta1_generated_assuredworkloadsservicestubsettings_updateworkload_sync] +// [START assuredworkloads_v1beta1_generated_assuredworkloadsservicestubsettings_updateworkload_sync] import com.google.cloud.assuredworkloads.v1beta1.stub.AssuredWorkloadsServiceStubSettings; import java.time.Duration;