diff --git a/java-showcase/gapic-showcase/pom.xml b/java-showcase/gapic-showcase/pom.xml
index 520fe61782..36d1ab34f9 100644
--- a/java-showcase/gapic-showcase/pom.xml
+++ b/java-showcase/gapic-showcase/pom.xml
@@ -18,6 +18,7 @@
0.35.1
+ 1.2.13
@@ -281,13 +282,13 @@
ch.qos.logback
logback-classic
- 1.3.15
+ ${slf4j1-logback.version}
test
ch.qos.logback
logback-core
- 1.3.15
+ ${slf4j1-logback.version}
test
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider.java
deleted file mode 100644
index e0a511d60d..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_Create_SetCredentialsProvider_sync]
-import com.google.api.gax.core.FixedCredentialsProvider;
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.ComplianceSettings;
-import com.google.showcase.v1beta1.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
- ComplianceSettings complianceSettings =
- ComplianceSettings.newBuilder()
- .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- .build();
- ComplianceClient complianceClient = ComplianceClient.create(complianceSettings);
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_Create_SetCredentialsProvider_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider1.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider1.java
deleted file mode 100644
index 0bde9fc26b..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider1.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_Create_SetCredentialsProvider1_sync]
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.ComplianceSettings;
-
-public class SyncCreateSetCredentialsProvider1 {
-
- public static void main(String[] args) throws Exception {
- syncCreateSetCredentialsProvider1();
- }
-
- public static void syncCreateSetCredentialsProvider1() 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
- ComplianceSettings complianceSettings = ComplianceSettings.newHttpJsonBuilder().build();
- ComplianceClient complianceClient = ComplianceClient.create(complianceSettings);
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_Create_SetCredentialsProvider1_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetEndpoint.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetEndpoint.java
deleted file mode 100644
index 5d942b32b5..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetEndpoint.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_Create_SetEndpoint_sync]
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.ComplianceSettings;
-import com.google.showcase.v1beta1.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
- ComplianceSettings complianceSettings =
- ComplianceSettings.newBuilder().setEndpoint(myEndpoint).build();
- ComplianceClient complianceClient = ComplianceClient.create(complianceSettings);
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_Create_SetEndpoint_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getenum/AsyncGetEnum.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getenum/AsyncGetEnum.java
deleted file mode 100644
index a4c6c64e5e..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getenum/AsyncGetEnum.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_GetEnum_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.EnumRequest;
-import com.google.showcase.v1beta1.EnumResponse;
-
-public class AsyncGetEnum {
-
- public static void main(String[] args) throws Exception {
- asyncGetEnum();
- }
-
- public static void asyncGetEnum() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- EnumRequest request = EnumRequest.newBuilder().setUnknownEnum(true).build();
- ApiFuture future = complianceClient.getEnumCallable().futureCall(request);
- // Do something.
- EnumResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_GetEnum_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getenum/SyncGetEnum.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getenum/SyncGetEnum.java
deleted file mode 100644
index 50ce8621ca..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getenum/SyncGetEnum.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_GetEnum_sync]
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.EnumRequest;
-import com.google.showcase.v1beta1.EnumResponse;
-
-public class SyncGetEnum {
-
- public static void main(String[] args) throws Exception {
- syncGetEnum();
- }
-
- public static void syncGetEnum() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- EnumRequest request = EnumRequest.newBuilder().setUnknownEnum(true).build();
- EnumResponse response = complianceClient.getEnum(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_GetEnum_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getiampolicy/AsyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getiampolicy/AsyncGetIamPolicy.java
deleted file mode 100644
index 09cf6316fa..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getiampolicy/AsyncGetIamPolicy.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_GetIamPolicy_async]
-import com.google.api.core.ApiFuture;
-import com.google.iam.v1.GetIamPolicyRequest;
-import com.google.iam.v1.GetPolicyOptions;
-import com.google.iam.v1.Policy;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.ComplianceClient;
-
-public class AsyncGetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- asyncGetIamPolicy();
- }
-
- public static void asyncGetIamPolicy() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- GetIamPolicyRequest request =
- GetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setOptions(GetPolicyOptions.newBuilder().build())
- .build();
- ApiFuture future = complianceClient.getIamPolicyCallable().futureCall(request);
- // Do something.
- Policy response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_GetIamPolicy_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getiampolicy/SyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getiampolicy/SyncGetIamPolicy.java
deleted file mode 100644
index 67cae79bc3..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getiampolicy/SyncGetIamPolicy.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_GetIamPolicy_sync]
-import com.google.iam.v1.GetIamPolicyRequest;
-import com.google.iam.v1.GetPolicyOptions;
-import com.google.iam.v1.Policy;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.ComplianceClient;
-
-public class SyncGetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- syncGetIamPolicy();
- }
-
- public static void syncGetIamPolicy() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- GetIamPolicyRequest request =
- GetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setOptions(GetPolicyOptions.newBuilder().build())
- .build();
- Policy response = complianceClient.getIamPolicy(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_GetIamPolicy_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getlocation/AsyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getlocation/AsyncGetLocation.java
deleted file mode 100644
index 9ddad213ff..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getlocation/AsyncGetLocation.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_GetLocation_async]
-import com.google.api.core.ApiFuture;
-import com.google.cloud.location.GetLocationRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.ComplianceClient;
-
-public class AsyncGetLocation {
-
- public static void main(String[] args) throws Exception {
- asyncGetLocation();
- }
-
- public static void asyncGetLocation() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
- ApiFuture future = complianceClient.getLocationCallable().futureCall(request);
- // Do something.
- Location response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_GetLocation_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getlocation/SyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getlocation/SyncGetLocation.java
deleted file mode 100644
index dbad120d10..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getlocation/SyncGetLocation.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_GetLocation_sync]
-import com.google.cloud.location.GetLocationRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.ComplianceClient;
-
-public class SyncGetLocation {
-
- public static void main(String[] args) throws Exception {
- syncGetLocation();
- }
-
- public static void syncGetLocation() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
- Location response = complianceClient.getLocation(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_GetLocation_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/listlocations/AsyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/listlocations/AsyncListLocations.java
deleted file mode 100644
index 72534ae14e..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/listlocations/AsyncListLocations.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_ListLocations_async]
-import com.google.api.core.ApiFuture;
-import com.google.cloud.location.ListLocationsRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.ComplianceClient;
-
-public class AsyncListLocations {
-
- public static void main(String[] args) throws Exception {
- asyncListLocations();
- }
-
- public static void asyncListLocations() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- ListLocationsRequest request =
- ListLocationsRequest.newBuilder()
- .setName("name3373707")
- .setFilter("filter-1274492040")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- ApiFuture future =
- complianceClient.listLocationsPagedCallable().futureCall(request);
- // Do something.
- for (Location element : future.get().iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_ListLocations_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/listlocations/AsyncListLocationsPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/listlocations/AsyncListLocationsPaged.java
deleted file mode 100644
index 8249da47ac..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/listlocations/AsyncListLocationsPaged.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_ListLocations_Paged_async]
-import com.google.cloud.location.ListLocationsRequest;
-import com.google.cloud.location.ListLocationsResponse;
-import com.google.cloud.location.Location;
-import com.google.common.base.Strings;
-import com.google.showcase.v1beta1.ComplianceClient;
-
-public class AsyncListLocationsPaged {
-
- public static void main(String[] args) throws Exception {
- asyncListLocationsPaged();
- }
-
- public static void asyncListLocationsPaged() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- ListLocationsRequest request =
- ListLocationsRequest.newBuilder()
- .setName("name3373707")
- .setFilter("filter-1274492040")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- while (true) {
- ListLocationsResponse response = complianceClient.listLocationsCallable().call(request);
- for (Location element : response.getLocationsList()) {
- // doThingsWith(element);
- }
- String nextPageToken = response.getNextPageToken();
- if (!Strings.isNullOrEmpty(nextPageToken)) {
- request = request.toBuilder().setPageToken(nextPageToken).build();
- } else {
- break;
- }
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_ListLocations_Paged_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/listlocations/SyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/listlocations/SyncListLocations.java
deleted file mode 100644
index 1b012d2e8c..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/listlocations/SyncListLocations.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_ListLocations_sync]
-import com.google.cloud.location.ListLocationsRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.ComplianceClient;
-
-public class SyncListLocations {
-
- public static void main(String[] args) throws Exception {
- syncListLocations();
- }
-
- public static void syncListLocations() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- ListLocationsRequest request =
- ListLocationsRequest.newBuilder()
- .setName("name3373707")
- .setFilter("filter-1274492040")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- for (Location element : complianceClient.listLocations(request).iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_ListLocations_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/AsyncRepeatDataBody.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/AsyncRepeatDataBody.java
deleted file mode 100644
index 3304295bed..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/AsyncRepeatDataBody.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_RepeatDataBody_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.ComplianceData;
-import com.google.showcase.v1beta1.RepeatRequest;
-import com.google.showcase.v1beta1.RepeatResponse;
-
-public class AsyncRepeatDataBody {
-
- public static void main(String[] args) throws Exception {
- asyncRepeatDataBody();
- }
-
- public static void asyncRepeatDataBody() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- RepeatRequest request =
- RepeatRequest.newBuilder()
- .setName("name3373707")
- .setInfo(ComplianceData.newBuilder().build())
- .setServerVerify(true)
- .setIntendedBindingUri("intendedBindingUri780142386")
- .setFInt32(-1143775883)
- .setFInt64(-1143775788)
- .setFDouble(-1239459382)
- .setPInt32(-858673665)
- .setPInt64(-858673570)
- .setPDouble(-991225216)
- .build();
- ApiFuture future =
- complianceClient.repeatDataBodyCallable().futureCall(request);
- // Do something.
- RepeatResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_RepeatDataBody_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/SyncRepeatDataBody.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/SyncRepeatDataBody.java
deleted file mode 100644
index ae0154e0bd..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabody/SyncRepeatDataBody.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_RepeatDataBody_sync]
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.ComplianceData;
-import com.google.showcase.v1beta1.RepeatRequest;
-import com.google.showcase.v1beta1.RepeatResponse;
-
-public class SyncRepeatDataBody {
-
- public static void main(String[] args) throws Exception {
- syncRepeatDataBody();
- }
-
- public static void syncRepeatDataBody() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- RepeatRequest request =
- RepeatRequest.newBuilder()
- .setName("name3373707")
- .setInfo(ComplianceData.newBuilder().build())
- .setServerVerify(true)
- .setIntendedBindingUri("intendedBindingUri780142386")
- .setFInt32(-1143775883)
- .setFInt64(-1143775788)
- .setFDouble(-1239459382)
- .setPInt32(-858673665)
- .setPInt64(-858673570)
- .setPDouble(-991225216)
- .build();
- RepeatResponse response = complianceClient.repeatDataBody(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_RepeatDataBody_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/AsyncRepeatDataBodyInfo.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/AsyncRepeatDataBodyInfo.java
deleted file mode 100644
index 67b3bf2097..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/AsyncRepeatDataBodyInfo.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_RepeatDataBodyInfo_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.ComplianceData;
-import com.google.showcase.v1beta1.RepeatRequest;
-import com.google.showcase.v1beta1.RepeatResponse;
-
-public class AsyncRepeatDataBodyInfo {
-
- public static void main(String[] args) throws Exception {
- asyncRepeatDataBodyInfo();
- }
-
- public static void asyncRepeatDataBodyInfo() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- RepeatRequest request =
- RepeatRequest.newBuilder()
- .setName("name3373707")
- .setInfo(ComplianceData.newBuilder().build())
- .setServerVerify(true)
- .setIntendedBindingUri("intendedBindingUri780142386")
- .setFInt32(-1143775883)
- .setFInt64(-1143775788)
- .setFDouble(-1239459382)
- .setPInt32(-858673665)
- .setPInt64(-858673570)
- .setPDouble(-991225216)
- .build();
- ApiFuture future =
- complianceClient.repeatDataBodyInfoCallable().futureCall(request);
- // Do something.
- RepeatResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_RepeatDataBodyInfo_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/SyncRepeatDataBodyInfo.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/SyncRepeatDataBodyInfo.java
deleted file mode 100644
index 385405b8ad..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyinfo/SyncRepeatDataBodyInfo.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_RepeatDataBodyInfo_sync]
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.ComplianceData;
-import com.google.showcase.v1beta1.RepeatRequest;
-import com.google.showcase.v1beta1.RepeatResponse;
-
-public class SyncRepeatDataBodyInfo {
-
- public static void main(String[] args) throws Exception {
- syncRepeatDataBodyInfo();
- }
-
- public static void syncRepeatDataBodyInfo() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- RepeatRequest request =
- RepeatRequest.newBuilder()
- .setName("name3373707")
- .setInfo(ComplianceData.newBuilder().build())
- .setServerVerify(true)
- .setIntendedBindingUri("intendedBindingUri780142386")
- .setFInt32(-1143775883)
- .setFInt64(-1143775788)
- .setFDouble(-1239459382)
- .setPInt32(-858673665)
- .setPInt64(-858673570)
- .setPDouble(-991225216)
- .build();
- RepeatResponse response = complianceClient.repeatDataBodyInfo(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_RepeatDataBodyInfo_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/AsyncRepeatDataBodyPatch.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/AsyncRepeatDataBodyPatch.java
deleted file mode 100644
index 620c94da99..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/AsyncRepeatDataBodyPatch.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_RepeatDataBodyPatch_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.ComplianceData;
-import com.google.showcase.v1beta1.RepeatRequest;
-import com.google.showcase.v1beta1.RepeatResponse;
-
-public class AsyncRepeatDataBodyPatch {
-
- public static void main(String[] args) throws Exception {
- asyncRepeatDataBodyPatch();
- }
-
- public static void asyncRepeatDataBodyPatch() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- RepeatRequest request =
- RepeatRequest.newBuilder()
- .setName("name3373707")
- .setInfo(ComplianceData.newBuilder().build())
- .setServerVerify(true)
- .setIntendedBindingUri("intendedBindingUri780142386")
- .setFInt32(-1143775883)
- .setFInt64(-1143775788)
- .setFDouble(-1239459382)
- .setPInt32(-858673665)
- .setPInt64(-858673570)
- .setPDouble(-991225216)
- .build();
- ApiFuture future =
- complianceClient.repeatDataBodyPatchCallable().futureCall(request);
- // Do something.
- RepeatResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_RepeatDataBodyPatch_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/SyncRepeatDataBodyPatch.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/SyncRepeatDataBodyPatch.java
deleted file mode 100644
index 907386c93f..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodypatch/SyncRepeatDataBodyPatch.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_RepeatDataBodyPatch_sync]
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.ComplianceData;
-import com.google.showcase.v1beta1.RepeatRequest;
-import com.google.showcase.v1beta1.RepeatResponse;
-
-public class SyncRepeatDataBodyPatch {
-
- public static void main(String[] args) throws Exception {
- syncRepeatDataBodyPatch();
- }
-
- public static void syncRepeatDataBodyPatch() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- RepeatRequest request =
- RepeatRequest.newBuilder()
- .setName("name3373707")
- .setInfo(ComplianceData.newBuilder().build())
- .setServerVerify(true)
- .setIntendedBindingUri("intendedBindingUri780142386")
- .setFInt32(-1143775883)
- .setFInt64(-1143775788)
- .setFDouble(-1239459382)
- .setPInt32(-858673665)
- .setPInt64(-858673570)
- .setPDouble(-991225216)
- .build();
- RepeatResponse response = complianceClient.repeatDataBodyPatch(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_RepeatDataBodyPatch_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/AsyncRepeatDataBodyPut.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/AsyncRepeatDataBodyPut.java
deleted file mode 100644
index 5debee1341..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/AsyncRepeatDataBodyPut.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_RepeatDataBodyPut_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.ComplianceData;
-import com.google.showcase.v1beta1.RepeatRequest;
-import com.google.showcase.v1beta1.RepeatResponse;
-
-public class AsyncRepeatDataBodyPut {
-
- public static void main(String[] args) throws Exception {
- asyncRepeatDataBodyPut();
- }
-
- public static void asyncRepeatDataBodyPut() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- RepeatRequest request =
- RepeatRequest.newBuilder()
- .setName("name3373707")
- .setInfo(ComplianceData.newBuilder().build())
- .setServerVerify(true)
- .setIntendedBindingUri("intendedBindingUri780142386")
- .setFInt32(-1143775883)
- .setFInt64(-1143775788)
- .setFDouble(-1239459382)
- .setPInt32(-858673665)
- .setPInt64(-858673570)
- .setPDouble(-991225216)
- .build();
- ApiFuture future =
- complianceClient.repeatDataBodyPutCallable().futureCall(request);
- // Do something.
- RepeatResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_RepeatDataBodyPut_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/SyncRepeatDataBodyPut.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/SyncRepeatDataBodyPut.java
deleted file mode 100644
index cd1fa61409..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatabodyput/SyncRepeatDataBodyPut.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_RepeatDataBodyPut_sync]
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.ComplianceData;
-import com.google.showcase.v1beta1.RepeatRequest;
-import com.google.showcase.v1beta1.RepeatResponse;
-
-public class SyncRepeatDataBodyPut {
-
- public static void main(String[] args) throws Exception {
- syncRepeatDataBodyPut();
- }
-
- public static void syncRepeatDataBodyPut() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- RepeatRequest request =
- RepeatRequest.newBuilder()
- .setName("name3373707")
- .setInfo(ComplianceData.newBuilder().build())
- .setServerVerify(true)
- .setIntendedBindingUri("intendedBindingUri780142386")
- .setFInt32(-1143775883)
- .setFInt64(-1143775788)
- .setFDouble(-1239459382)
- .setPInt32(-858673665)
- .setPInt64(-858673570)
- .setPDouble(-991225216)
- .build();
- RepeatResponse response = complianceClient.repeatDataBodyPut(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_RepeatDataBodyPut_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/AsyncRepeatDataPathResource.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/AsyncRepeatDataPathResource.java
deleted file mode 100644
index bc4a003385..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/AsyncRepeatDataPathResource.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_RepeatDataPathResource_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.ComplianceData;
-import com.google.showcase.v1beta1.RepeatRequest;
-import com.google.showcase.v1beta1.RepeatResponse;
-
-public class AsyncRepeatDataPathResource {
-
- public static void main(String[] args) throws Exception {
- asyncRepeatDataPathResource();
- }
-
- public static void asyncRepeatDataPathResource() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- RepeatRequest request =
- RepeatRequest.newBuilder()
- .setName("name3373707")
- .setInfo(ComplianceData.newBuilder().build())
- .setServerVerify(true)
- .setIntendedBindingUri("intendedBindingUri780142386")
- .setFInt32(-1143775883)
- .setFInt64(-1143775788)
- .setFDouble(-1239459382)
- .setPInt32(-858673665)
- .setPInt64(-858673570)
- .setPDouble(-991225216)
- .build();
- ApiFuture future =
- complianceClient.repeatDataPathResourceCallable().futureCall(request);
- // Do something.
- RepeatResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_RepeatDataPathResource_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/SyncRepeatDataPathResource.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/SyncRepeatDataPathResource.java
deleted file mode 100644
index 16aae4ebf0..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathresource/SyncRepeatDataPathResource.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_RepeatDataPathResource_sync]
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.ComplianceData;
-import com.google.showcase.v1beta1.RepeatRequest;
-import com.google.showcase.v1beta1.RepeatResponse;
-
-public class SyncRepeatDataPathResource {
-
- public static void main(String[] args) throws Exception {
- syncRepeatDataPathResource();
- }
-
- public static void syncRepeatDataPathResource() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- RepeatRequest request =
- RepeatRequest.newBuilder()
- .setName("name3373707")
- .setInfo(ComplianceData.newBuilder().build())
- .setServerVerify(true)
- .setIntendedBindingUri("intendedBindingUri780142386")
- .setFInt32(-1143775883)
- .setFInt64(-1143775788)
- .setFDouble(-1239459382)
- .setPInt32(-858673665)
- .setPInt64(-858673570)
- .setPDouble(-991225216)
- .build();
- RepeatResponse response = complianceClient.repeatDataPathResource(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_RepeatDataPathResource_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/AsyncRepeatDataPathTrailingResource.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/AsyncRepeatDataPathTrailingResource.java
deleted file mode 100644
index 74283e7cef..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/AsyncRepeatDataPathTrailingResource.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_RepeatDataPathTrailingResource_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.ComplianceData;
-import com.google.showcase.v1beta1.RepeatRequest;
-import com.google.showcase.v1beta1.RepeatResponse;
-
-public class AsyncRepeatDataPathTrailingResource {
-
- public static void main(String[] args) throws Exception {
- asyncRepeatDataPathTrailingResource();
- }
-
- public static void asyncRepeatDataPathTrailingResource() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- RepeatRequest request =
- RepeatRequest.newBuilder()
- .setName("name3373707")
- .setInfo(ComplianceData.newBuilder().build())
- .setServerVerify(true)
- .setIntendedBindingUri("intendedBindingUri780142386")
- .setFInt32(-1143775883)
- .setFInt64(-1143775788)
- .setFDouble(-1239459382)
- .setPInt32(-858673665)
- .setPInt64(-858673570)
- .setPDouble(-991225216)
- .build();
- ApiFuture future =
- complianceClient.repeatDataPathTrailingResourceCallable().futureCall(request);
- // Do something.
- RepeatResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_RepeatDataPathTrailingResource_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/SyncRepeatDataPathTrailingResource.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/SyncRepeatDataPathTrailingResource.java
deleted file mode 100644
index 9de30e6dde..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatapathtrailingresource/SyncRepeatDataPathTrailingResource.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_RepeatDataPathTrailingResource_sync]
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.ComplianceData;
-import com.google.showcase.v1beta1.RepeatRequest;
-import com.google.showcase.v1beta1.RepeatResponse;
-
-public class SyncRepeatDataPathTrailingResource {
-
- public static void main(String[] args) throws Exception {
- syncRepeatDataPathTrailingResource();
- }
-
- public static void syncRepeatDataPathTrailingResource() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- RepeatRequest request =
- RepeatRequest.newBuilder()
- .setName("name3373707")
- .setInfo(ComplianceData.newBuilder().build())
- .setServerVerify(true)
- .setIntendedBindingUri("intendedBindingUri780142386")
- .setFInt32(-1143775883)
- .setFInt64(-1143775788)
- .setFDouble(-1239459382)
- .setPInt32(-858673665)
- .setPInt64(-858673570)
- .setPDouble(-991225216)
- .build();
- RepeatResponse response = complianceClient.repeatDataPathTrailingResource(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_RepeatDataPathTrailingResource_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/AsyncRepeatDataQuery.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/AsyncRepeatDataQuery.java
deleted file mode 100644
index fe5387ab8b..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/AsyncRepeatDataQuery.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_RepeatDataQuery_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.ComplianceData;
-import com.google.showcase.v1beta1.RepeatRequest;
-import com.google.showcase.v1beta1.RepeatResponse;
-
-public class AsyncRepeatDataQuery {
-
- public static void main(String[] args) throws Exception {
- asyncRepeatDataQuery();
- }
-
- public static void asyncRepeatDataQuery() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- RepeatRequest request =
- RepeatRequest.newBuilder()
- .setName("name3373707")
- .setInfo(ComplianceData.newBuilder().build())
- .setServerVerify(true)
- .setIntendedBindingUri("intendedBindingUri780142386")
- .setFInt32(-1143775883)
- .setFInt64(-1143775788)
- .setFDouble(-1239459382)
- .setPInt32(-858673665)
- .setPInt64(-858673570)
- .setPDouble(-991225216)
- .build();
- ApiFuture future =
- complianceClient.repeatDataQueryCallable().futureCall(request);
- // Do something.
- RepeatResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_RepeatDataQuery_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/SyncRepeatDataQuery.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/SyncRepeatDataQuery.java
deleted file mode 100644
index 5f841da392..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdataquery/SyncRepeatDataQuery.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_RepeatDataQuery_sync]
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.ComplianceData;
-import com.google.showcase.v1beta1.RepeatRequest;
-import com.google.showcase.v1beta1.RepeatResponse;
-
-public class SyncRepeatDataQuery {
-
- public static void main(String[] args) throws Exception {
- syncRepeatDataQuery();
- }
-
- public static void syncRepeatDataQuery() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- RepeatRequest request =
- RepeatRequest.newBuilder()
- .setName("name3373707")
- .setInfo(ComplianceData.newBuilder().build())
- .setServerVerify(true)
- .setIntendedBindingUri("intendedBindingUri780142386")
- .setFInt32(-1143775883)
- .setFInt64(-1143775788)
- .setFDouble(-1239459382)
- .setPInt32(-858673665)
- .setPInt64(-858673570)
- .setPDouble(-991225216)
- .build();
- RepeatResponse response = complianceClient.repeatDataQuery(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_RepeatDataQuery_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/AsyncRepeatDataSimplePath.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/AsyncRepeatDataSimplePath.java
deleted file mode 100644
index 71b0acd79a..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/AsyncRepeatDataSimplePath.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_RepeatDataSimplePath_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.ComplianceData;
-import com.google.showcase.v1beta1.RepeatRequest;
-import com.google.showcase.v1beta1.RepeatResponse;
-
-public class AsyncRepeatDataSimplePath {
-
- public static void main(String[] args) throws Exception {
- asyncRepeatDataSimplePath();
- }
-
- public static void asyncRepeatDataSimplePath() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- RepeatRequest request =
- RepeatRequest.newBuilder()
- .setName("name3373707")
- .setInfo(ComplianceData.newBuilder().build())
- .setServerVerify(true)
- .setIntendedBindingUri("intendedBindingUri780142386")
- .setFInt32(-1143775883)
- .setFInt64(-1143775788)
- .setFDouble(-1239459382)
- .setPInt32(-858673665)
- .setPInt64(-858673570)
- .setPDouble(-991225216)
- .build();
- ApiFuture future =
- complianceClient.repeatDataSimplePathCallable().futureCall(request);
- // Do something.
- RepeatResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_RepeatDataSimplePath_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/SyncRepeatDataSimplePath.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/SyncRepeatDataSimplePath.java
deleted file mode 100644
index 853942cdeb..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/repeatdatasimplepath/SyncRepeatDataSimplePath.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_RepeatDataSimplePath_sync]
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.ComplianceData;
-import com.google.showcase.v1beta1.RepeatRequest;
-import com.google.showcase.v1beta1.RepeatResponse;
-
-public class SyncRepeatDataSimplePath {
-
- public static void main(String[] args) throws Exception {
- syncRepeatDataSimplePath();
- }
-
- public static void syncRepeatDataSimplePath() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- RepeatRequest request =
- RepeatRequest.newBuilder()
- .setName("name3373707")
- .setInfo(ComplianceData.newBuilder().build())
- .setServerVerify(true)
- .setIntendedBindingUri("intendedBindingUri780142386")
- .setFInt32(-1143775883)
- .setFInt64(-1143775788)
- .setFDouble(-1239459382)
- .setPInt32(-858673665)
- .setPInt64(-858673570)
- .setPDouble(-991225216)
- .build();
- RepeatResponse response = complianceClient.repeatDataSimplePath(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_RepeatDataSimplePath_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/setiampolicy/AsyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/setiampolicy/AsyncSetIamPolicy.java
deleted file mode 100644
index eff18e66e1..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/setiampolicy/AsyncSetIamPolicy.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_SetIamPolicy_async]
-import com.google.api.core.ApiFuture;
-import com.google.iam.v1.Policy;
-import com.google.iam.v1.SetIamPolicyRequest;
-import com.google.protobuf.FieldMask;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.ComplianceClient;
-
-public class AsyncSetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- asyncSetIamPolicy();
- }
-
- public static void asyncSetIamPolicy() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- SetIamPolicyRequest request =
- SetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setPolicy(Policy.newBuilder().build())
- .setUpdateMask(FieldMask.newBuilder().build())
- .build();
- ApiFuture future = complianceClient.setIamPolicyCallable().futureCall(request);
- // Do something.
- Policy response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_SetIamPolicy_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/setiampolicy/SyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/setiampolicy/SyncSetIamPolicy.java
deleted file mode 100644
index 7686b3699c..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/setiampolicy/SyncSetIamPolicy.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_SetIamPolicy_sync]
-import com.google.iam.v1.Policy;
-import com.google.iam.v1.SetIamPolicyRequest;
-import com.google.protobuf.FieldMask;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.ComplianceClient;
-
-public class SyncSetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- syncSetIamPolicy();
- }
-
- public static void syncSetIamPolicy() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- SetIamPolicyRequest request =
- SetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setPolicy(Policy.newBuilder().build())
- .setUpdateMask(FieldMask.newBuilder().build())
- .build();
- Policy response = complianceClient.setIamPolicy(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_SetIamPolicy_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/testiampermissions/AsyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/testiampermissions/AsyncTestIamPermissions.java
deleted file mode 100644
index 10a0ebb091..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/testiampermissions/AsyncTestIamPermissions.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_TestIamPermissions_async]
-import com.google.api.core.ApiFuture;
-import com.google.iam.v1.TestIamPermissionsRequest;
-import com.google.iam.v1.TestIamPermissionsResponse;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.ComplianceClient;
-import java.util.ArrayList;
-
-public class AsyncTestIamPermissions {
-
- public static void main(String[] args) throws Exception {
- asyncTestIamPermissions();
- }
-
- public static void asyncTestIamPermissions() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- TestIamPermissionsRequest request =
- TestIamPermissionsRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .addAllPermissions(new ArrayList())
- .build();
- ApiFuture future =
- complianceClient.testIamPermissionsCallable().futureCall(request);
- // Do something.
- TestIamPermissionsResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_TestIamPermissions_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/testiampermissions/SyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/testiampermissions/SyncTestIamPermissions.java
deleted file mode 100644
index a69a6a5b66..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/testiampermissions/SyncTestIamPermissions.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_TestIamPermissions_sync]
-import com.google.iam.v1.TestIamPermissionsRequest;
-import com.google.iam.v1.TestIamPermissionsResponse;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.ComplianceClient;
-import java.util.ArrayList;
-
-public class SyncTestIamPermissions {
-
- public static void main(String[] args) throws Exception {
- syncTestIamPermissions();
- }
-
- public static void syncTestIamPermissions() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- TestIamPermissionsRequest request =
- TestIamPermissionsRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .addAllPermissions(new ArrayList())
- .build();
- TestIamPermissionsResponse response = complianceClient.testIamPermissions(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_TestIamPermissions_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/verifyenum/AsyncVerifyEnum.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/verifyenum/AsyncVerifyEnum.java
deleted file mode 100644
index f1def5acf6..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/verifyenum/AsyncVerifyEnum.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_VerifyEnum_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.Continent;
-import com.google.showcase.v1beta1.EnumRequest;
-import com.google.showcase.v1beta1.EnumResponse;
-
-public class AsyncVerifyEnum {
-
- public static void main(String[] args) throws Exception {
- asyncVerifyEnum();
- }
-
- public static void asyncVerifyEnum() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- EnumResponse request =
- EnumResponse.newBuilder()
- .setRequest(EnumRequest.newBuilder().build())
- .setContinent(Continent.forNumber(0))
- .build();
- ApiFuture future = complianceClient.verifyEnumCallable().futureCall(request);
- // Do something.
- EnumResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_VerifyEnum_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/verifyenum/SyncVerifyEnum.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/verifyenum/SyncVerifyEnum.java
deleted file mode 100644
index aacfc24f38..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/verifyenum/SyncVerifyEnum.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Compliance_VerifyEnum_sync]
-import com.google.showcase.v1beta1.ComplianceClient;
-import com.google.showcase.v1beta1.Continent;
-import com.google.showcase.v1beta1.EnumRequest;
-import com.google.showcase.v1beta1.EnumResponse;
-
-public class SyncVerifyEnum {
-
- public static void main(String[] args) throws Exception {
- syncVerifyEnum();
- }
-
- public static void syncVerifyEnum() 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 (ComplianceClient complianceClient = ComplianceClient.create()) {
- EnumResponse request =
- EnumResponse.newBuilder()
- .setRequest(EnumRequest.newBuilder().build())
- .setContinent(Continent.forNumber(0))
- .build();
- EnumResponse response = complianceClient.verifyEnum(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Compliance_VerifyEnum_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliancesettings/repeatdatabody/SyncRepeatDataBody.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliancesettings/repeatdatabody/SyncRepeatDataBody.java
deleted file mode 100644
index de4f27283d..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliancesettings/repeatdatabody/SyncRepeatDataBody.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_ComplianceSettings_RepeatDataBody_sync]
-import com.google.showcase.v1beta1.ComplianceSettings;
-import java.time.Duration;
-
-public class SyncRepeatDataBody {
-
- public static void main(String[] args) throws Exception {
- syncRepeatDataBody();
- }
-
- public static void syncRepeatDataBody() 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
- ComplianceSettings.Builder complianceSettingsBuilder = ComplianceSettings.newBuilder();
- complianceSettingsBuilder
- .repeatDataBodySettings()
- .setRetrySettings(
- complianceSettingsBuilder
- .repeatDataBodySettings()
- .getRetrySettings()
- .toBuilder()
- .setTotalTimeout(Duration.ofSeconds(30))
- .build());
- ComplianceSettings complianceSettings = complianceSettingsBuilder.build();
- }
-}
-// [END localhost7469_v1beta1_generated_ComplianceSettings_RepeatDataBody_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/block/AsyncBlock.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/block/AsyncBlock.java
deleted file mode 100644
index 73bfc84755..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/block/AsyncBlock.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_Block_async]
-import com.google.api.core.ApiFuture;
-import com.google.protobuf.Duration;
-import com.google.showcase.v1beta1.BlockRequest;
-import com.google.showcase.v1beta1.BlockResponse;
-import com.google.showcase.v1beta1.EchoClient;
-
-public class AsyncBlock {
-
- public static void main(String[] args) throws Exception {
- asyncBlock();
- }
-
- public static void asyncBlock() 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 (EchoClient echoClient = EchoClient.create()) {
- BlockRequest request =
- BlockRequest.newBuilder().setResponseDelay(Duration.newBuilder().build()).build();
- ApiFuture future = echoClient.blockCallable().futureCall(request);
- // Do something.
- BlockResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_Block_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/block/SyncBlock.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/block/SyncBlock.java
deleted file mode 100644
index a8fdbcd441..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/block/SyncBlock.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_Block_sync]
-import com.google.protobuf.Duration;
-import com.google.showcase.v1beta1.BlockRequest;
-import com.google.showcase.v1beta1.BlockResponse;
-import com.google.showcase.v1beta1.EchoClient;
-
-public class SyncBlock {
-
- public static void main(String[] args) throws Exception {
- syncBlock();
- }
-
- public static void syncBlock() 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 (EchoClient echoClient = EchoClient.create()) {
- BlockRequest request =
- BlockRequest.newBuilder().setResponseDelay(Duration.newBuilder().build()).build();
- BlockResponse response = echoClient.block(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_Block_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/chat/AsyncChat.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/chat/AsyncChat.java
deleted file mode 100644
index 181971eccf..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/chat/AsyncChat.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_Chat_async]
-import com.google.api.gax.rpc.BidiStream;
-import com.google.showcase.v1beta1.EchoClient;
-import com.google.showcase.v1beta1.EchoRequest;
-import com.google.showcase.v1beta1.EchoResponse;
-import com.google.showcase.v1beta1.Severity;
-
-public class AsyncChat {
-
- public static void main(String[] args) throws Exception {
- asyncChat();
- }
-
- public static void asyncChat() 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 (EchoClient echoClient = EchoClient.create()) {
- BidiStream bidiStream = echoClient.chatCallable().call();
- EchoRequest request =
- EchoRequest.newBuilder()
- .setSeverity(Severity.forNumber(0))
- .setHeader("header-1221270899")
- .setOtherHeader("otherHeader-2026585667")
- .build();
- bidiStream.send(request);
- for (EchoResponse response : bidiStream) {
- // Do something when a response is received.
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_Chat_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/collect/AsyncCollect.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/collect/AsyncCollect.java
deleted file mode 100644
index bce133d60e..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/collect/AsyncCollect.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_Collect_async]
-import com.google.api.gax.rpc.ApiStreamObserver;
-import com.google.showcase.v1beta1.EchoClient;
-import com.google.showcase.v1beta1.EchoRequest;
-import com.google.showcase.v1beta1.EchoResponse;
-import com.google.showcase.v1beta1.Severity;
-
-public class AsyncCollect {
-
- public static void main(String[] args) throws Exception {
- asyncCollect();
- }
-
- public static void asyncCollect() 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 (EchoClient echoClient = EchoClient.create()) {
- ApiStreamObserver responseObserver =
- new ApiStreamObserver() {
- @Override
- public void onNext(EchoResponse response) {
- // Do something when a response is received.
- }
-
- @Override
- public void onError(Throwable t) {
- // Add error-handling
- }
-
- @Override
- public void onCompleted() {
- // Do something when complete.
- }
- };
- ApiStreamObserver requestObserver =
- echoClient.collect().clientStreamingCall(responseObserver);
- EchoRequest request =
- EchoRequest.newBuilder()
- .setSeverity(Severity.forNumber(0))
- .setHeader("header-1221270899")
- .setOtherHeader("otherHeader-2026585667")
- .build();
- requestObserver.onNext(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_Collect_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider.java
deleted file mode 100644
index 20db6341ec..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_Create_SetCredentialsProvider_sync]
-import com.google.api.gax.core.FixedCredentialsProvider;
-import com.google.showcase.v1beta1.EchoClient;
-import com.google.showcase.v1beta1.EchoSettings;
-import com.google.showcase.v1beta1.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
- EchoSettings echoSettings =
- EchoSettings.newBuilder()
- .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- .build();
- EchoClient echoClient = EchoClient.create(echoSettings);
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_Create_SetCredentialsProvider_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider1.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider1.java
deleted file mode 100644
index 00393be72f..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetCredentialsProvider1.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_Create_SetCredentialsProvider1_sync]
-import com.google.showcase.v1beta1.EchoClient;
-import com.google.showcase.v1beta1.EchoSettings;
-
-public class SyncCreateSetCredentialsProvider1 {
-
- public static void main(String[] args) throws Exception {
- syncCreateSetCredentialsProvider1();
- }
-
- public static void syncCreateSetCredentialsProvider1() 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
- EchoSettings echoSettings = EchoSettings.newHttpJsonBuilder().build();
- EchoClient echoClient = EchoClient.create(echoSettings);
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_Create_SetCredentialsProvider1_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetEndpoint.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetEndpoint.java
deleted file mode 100644
index 00bbe307f6..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/create/SyncCreateSetEndpoint.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_Create_SetEndpoint_sync]
-import com.google.showcase.v1beta1.EchoClient;
-import com.google.showcase.v1beta1.EchoSettings;
-import com.google.showcase.v1beta1.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
- EchoSettings echoSettings = EchoSettings.newBuilder().setEndpoint(myEndpoint).build();
- EchoClient echoClient = EchoClient.create(echoSettings);
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_Create_SetEndpoint_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/echo/AsyncEcho.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/echo/AsyncEcho.java
deleted file mode 100644
index 7e799bc6a3..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/echo/AsyncEcho.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_Echo_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.EchoClient;
-import com.google.showcase.v1beta1.EchoRequest;
-import com.google.showcase.v1beta1.EchoResponse;
-import com.google.showcase.v1beta1.Severity;
-
-public class AsyncEcho {
-
- public static void main(String[] args) throws Exception {
- asyncEcho();
- }
-
- public static void asyncEcho() 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 (EchoClient echoClient = EchoClient.create()) {
- EchoRequest request =
- EchoRequest.newBuilder()
- .setSeverity(Severity.forNumber(0))
- .setHeader("header-1221270899")
- .setOtherHeader("otherHeader-2026585667")
- .build();
- ApiFuture future = echoClient.echoCallable().futureCall(request);
- // Do something.
- EchoResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_Echo_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/echo/SyncEcho.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/echo/SyncEcho.java
deleted file mode 100644
index 9bf082a610..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/echo/SyncEcho.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_Echo_sync]
-import com.google.showcase.v1beta1.EchoClient;
-import com.google.showcase.v1beta1.EchoRequest;
-import com.google.showcase.v1beta1.EchoResponse;
-import com.google.showcase.v1beta1.Severity;
-
-public class SyncEcho {
-
- public static void main(String[] args) throws Exception {
- syncEcho();
- }
-
- public static void syncEcho() 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 (EchoClient echoClient = EchoClient.create()) {
- EchoRequest request =
- EchoRequest.newBuilder()
- .setSeverity(Severity.forNumber(0))
- .setHeader("header-1221270899")
- .setOtherHeader("otherHeader-2026585667")
- .build();
- EchoResponse response = echoClient.echo(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_Echo_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java
deleted file mode 100644
index 4aafdd8776..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/expand/AsyncExpand.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_Expand_async]
-import com.google.api.gax.rpc.ServerStream;
-import com.google.protobuf.Duration;
-import com.google.rpc.Status;
-import com.google.showcase.v1beta1.EchoClient;
-import com.google.showcase.v1beta1.EchoResponse;
-import com.google.showcase.v1beta1.ExpandRequest;
-
-public class AsyncExpand {
-
- public static void main(String[] args) throws Exception {
- asyncExpand();
- }
-
- public static void asyncExpand() 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 (EchoClient echoClient = EchoClient.create()) {
- ExpandRequest request =
- ExpandRequest.newBuilder()
- .setContent("content951530617")
- .setError(Status.newBuilder().build())
- .setStreamWaitTime(Duration.newBuilder().build())
- .build();
- ServerStream stream = echoClient.expandCallable().call(request);
- for (EchoResponse response : stream) {
- // Do something when a response is received.
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_Expand_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getiampolicy/AsyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getiampolicy/AsyncGetIamPolicy.java
deleted file mode 100644
index 6c76ee5d8e..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getiampolicy/AsyncGetIamPolicy.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_GetIamPolicy_async]
-import com.google.api.core.ApiFuture;
-import com.google.iam.v1.GetIamPolicyRequest;
-import com.google.iam.v1.GetPolicyOptions;
-import com.google.iam.v1.Policy;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.EchoClient;
-
-public class AsyncGetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- asyncGetIamPolicy();
- }
-
- public static void asyncGetIamPolicy() 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 (EchoClient echoClient = EchoClient.create()) {
- GetIamPolicyRequest request =
- GetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setOptions(GetPolicyOptions.newBuilder().build())
- .build();
- ApiFuture future = echoClient.getIamPolicyCallable().futureCall(request);
- // Do something.
- Policy response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_GetIamPolicy_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getiampolicy/SyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getiampolicy/SyncGetIamPolicy.java
deleted file mode 100644
index 30332b6a77..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getiampolicy/SyncGetIamPolicy.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_GetIamPolicy_sync]
-import com.google.iam.v1.GetIamPolicyRequest;
-import com.google.iam.v1.GetPolicyOptions;
-import com.google.iam.v1.Policy;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.EchoClient;
-
-public class SyncGetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- syncGetIamPolicy();
- }
-
- public static void syncGetIamPolicy() 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 (EchoClient echoClient = EchoClient.create()) {
- GetIamPolicyRequest request =
- GetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setOptions(GetPolicyOptions.newBuilder().build())
- .build();
- Policy response = echoClient.getIamPolicy(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_GetIamPolicy_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getlocation/AsyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getlocation/AsyncGetLocation.java
deleted file mode 100644
index 7c4e38efaf..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getlocation/AsyncGetLocation.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_GetLocation_async]
-import com.google.api.core.ApiFuture;
-import com.google.cloud.location.GetLocationRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.EchoClient;
-
-public class AsyncGetLocation {
-
- public static void main(String[] args) throws Exception {
- asyncGetLocation();
- }
-
- public static void asyncGetLocation() 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 (EchoClient echoClient = EchoClient.create()) {
- GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
- ApiFuture future = echoClient.getLocationCallable().futureCall(request);
- // Do something.
- Location response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_GetLocation_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getlocation/SyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getlocation/SyncGetLocation.java
deleted file mode 100644
index 3e24b7b837..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/getlocation/SyncGetLocation.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_GetLocation_sync]
-import com.google.cloud.location.GetLocationRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.EchoClient;
-
-public class SyncGetLocation {
-
- public static void main(String[] args) throws Exception {
- syncGetLocation();
- }
-
- public static void syncGetLocation() 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 (EchoClient echoClient = EchoClient.create()) {
- GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
- Location response = echoClient.getLocation(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_GetLocation_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/listlocations/AsyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/listlocations/AsyncListLocations.java
deleted file mode 100644
index c8b47cf05f..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/listlocations/AsyncListLocations.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_ListLocations_async]
-import com.google.api.core.ApiFuture;
-import com.google.cloud.location.ListLocationsRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.EchoClient;
-
-public class AsyncListLocations {
-
- public static void main(String[] args) throws Exception {
- asyncListLocations();
- }
-
- public static void asyncListLocations() 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 (EchoClient echoClient = EchoClient.create()) {
- ListLocationsRequest request =
- ListLocationsRequest.newBuilder()
- .setName("name3373707")
- .setFilter("filter-1274492040")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- ApiFuture future = echoClient.listLocationsPagedCallable().futureCall(request);
- // Do something.
- for (Location element : future.get().iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_ListLocations_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/listlocations/AsyncListLocationsPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/listlocations/AsyncListLocationsPaged.java
deleted file mode 100644
index 39f0b49dc5..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/listlocations/AsyncListLocationsPaged.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_ListLocations_Paged_async]
-import com.google.cloud.location.ListLocationsRequest;
-import com.google.cloud.location.ListLocationsResponse;
-import com.google.cloud.location.Location;
-import com.google.common.base.Strings;
-import com.google.showcase.v1beta1.EchoClient;
-
-public class AsyncListLocationsPaged {
-
- public static void main(String[] args) throws Exception {
- asyncListLocationsPaged();
- }
-
- public static void asyncListLocationsPaged() 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 (EchoClient echoClient = EchoClient.create()) {
- ListLocationsRequest request =
- ListLocationsRequest.newBuilder()
- .setName("name3373707")
- .setFilter("filter-1274492040")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- while (true) {
- ListLocationsResponse response = echoClient.listLocationsCallable().call(request);
- for (Location element : response.getLocationsList()) {
- // doThingsWith(element);
- }
- String nextPageToken = response.getNextPageToken();
- if (!Strings.isNullOrEmpty(nextPageToken)) {
- request = request.toBuilder().setPageToken(nextPageToken).build();
- } else {
- break;
- }
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_ListLocations_Paged_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/listlocations/SyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/listlocations/SyncListLocations.java
deleted file mode 100644
index 463ac3f4e4..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/listlocations/SyncListLocations.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_ListLocations_sync]
-import com.google.cloud.location.ListLocationsRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.EchoClient;
-
-public class SyncListLocations {
-
- public static void main(String[] args) throws Exception {
- syncListLocations();
- }
-
- public static void syncListLocations() 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 (EchoClient echoClient = EchoClient.create()) {
- ListLocationsRequest request =
- ListLocationsRequest.newBuilder()
- .setName("name3373707")
- .setFilter("filter-1274492040")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- for (Location element : echoClient.listLocations(request).iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_ListLocations_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpand.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpand.java
deleted file mode 100644
index 449b425685..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpand.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_PagedExpand_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.EchoClient;
-import com.google.showcase.v1beta1.EchoResponse;
-import com.google.showcase.v1beta1.PagedExpandRequest;
-
-public class AsyncPagedExpand {
-
- public static void main(String[] args) throws Exception {
- asyncPagedExpand();
- }
-
- public static void asyncPagedExpand() 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 (EchoClient echoClient = EchoClient.create()) {
- PagedExpandRequest request =
- PagedExpandRequest.newBuilder()
- .setContent("content951530617")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- ApiFuture future = echoClient.pagedExpandPagedCallable().futureCall(request);
- // Do something.
- for (EchoResponse element : future.get().iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_PagedExpand_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpandPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpandPaged.java
deleted file mode 100644
index 0b7ba9d247..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/AsyncPagedExpandPaged.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_PagedExpand_Paged_async]
-import com.google.common.base.Strings;
-import com.google.showcase.v1beta1.EchoClient;
-import com.google.showcase.v1beta1.EchoResponse;
-import com.google.showcase.v1beta1.PagedExpandRequest;
-import com.google.showcase.v1beta1.PagedExpandResponse;
-
-public class AsyncPagedExpandPaged {
-
- public static void main(String[] args) throws Exception {
- asyncPagedExpandPaged();
- }
-
- public static void asyncPagedExpandPaged() 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 (EchoClient echoClient = EchoClient.create()) {
- PagedExpandRequest request =
- PagedExpandRequest.newBuilder()
- .setContent("content951530617")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- while (true) {
- PagedExpandResponse response = echoClient.pagedExpandCallable().call(request);
- for (EchoResponse element : response.getResponsesList()) {
- // doThingsWith(element);
- }
- String nextPageToken = response.getNextPageToken();
- if (!Strings.isNullOrEmpty(nextPageToken)) {
- request = request.toBuilder().setPageToken(nextPageToken).build();
- } else {
- break;
- }
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_PagedExpand_Paged_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/SyncPagedExpand.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/SyncPagedExpand.java
deleted file mode 100644
index b0e13e02b4..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpand/SyncPagedExpand.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_PagedExpand_sync]
-import com.google.showcase.v1beta1.EchoClient;
-import com.google.showcase.v1beta1.EchoResponse;
-import com.google.showcase.v1beta1.PagedExpandRequest;
-
-public class SyncPagedExpand {
-
- public static void main(String[] args) throws Exception {
- syncPagedExpand();
- }
-
- public static void syncPagedExpand() 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 (EchoClient echoClient = EchoClient.create()) {
- PagedExpandRequest request =
- PagedExpandRequest.newBuilder()
- .setContent("content951530617")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- for (EchoResponse element : echoClient.pagedExpand(request).iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_PagedExpand_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/AsyncPagedExpandLegacy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/AsyncPagedExpandLegacy.java
deleted file mode 100644
index eca4717b5a..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/AsyncPagedExpandLegacy.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_PagedExpandLegacy_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.EchoClient;
-import com.google.showcase.v1beta1.PagedExpandLegacyRequest;
-import com.google.showcase.v1beta1.PagedExpandResponse;
-
-public class AsyncPagedExpandLegacy {
-
- public static void main(String[] args) throws Exception {
- asyncPagedExpandLegacy();
- }
-
- public static void asyncPagedExpandLegacy() 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 (EchoClient echoClient = EchoClient.create()) {
- PagedExpandLegacyRequest request =
- PagedExpandLegacyRequest.newBuilder()
- .setContent("content951530617")
- .setMaxResults(1128457243)
- .setPageToken("pageToken873572522")
- .build();
- ApiFuture future =
- echoClient.pagedExpandLegacyCallable().futureCall(request);
- // Do something.
- PagedExpandResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_PagedExpandLegacy_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/SyncPagedExpandLegacy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/SyncPagedExpandLegacy.java
deleted file mode 100644
index e4914424d7..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacy/SyncPagedExpandLegacy.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_PagedExpandLegacy_sync]
-import com.google.showcase.v1beta1.EchoClient;
-import com.google.showcase.v1beta1.PagedExpandLegacyRequest;
-import com.google.showcase.v1beta1.PagedExpandResponse;
-
-public class SyncPagedExpandLegacy {
-
- public static void main(String[] args) throws Exception {
- syncPagedExpandLegacy();
- }
-
- public static void syncPagedExpandLegacy() 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 (EchoClient echoClient = EchoClient.create()) {
- PagedExpandLegacyRequest request =
- PagedExpandLegacyRequest.newBuilder()
- .setContent("content951530617")
- .setMaxResults(1128457243)
- .setPageToken("pageToken873572522")
- .build();
- PagedExpandResponse response = echoClient.pagedExpandLegacy(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_PagedExpandLegacy_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMapped.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMapped.java
deleted file mode 100644
index c2910cc614..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMapped.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_PagedExpandLegacyMapped_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.EchoClient;
-import com.google.showcase.v1beta1.PagedExpandRequest;
-import com.google.showcase.v1beta1.PagedExpandResponseList;
-import java.util.Map;
-
-public class AsyncPagedExpandLegacyMapped {
-
- public static void main(String[] args) throws Exception {
- asyncPagedExpandLegacyMapped();
- }
-
- public static void asyncPagedExpandLegacyMapped() 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 (EchoClient echoClient = EchoClient.create()) {
- PagedExpandRequest request =
- PagedExpandRequest.newBuilder()
- .setContent("content951530617")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- ApiFuture> future =
- echoClient.pagedExpandLegacyMappedPagedCallable().futureCall(request);
- // Do something.
- for (Map.Entry element : future.get().iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_PagedExpandLegacyMapped_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMappedPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMappedPaged.java
deleted file mode 100644
index 958032eb35..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/AsyncPagedExpandLegacyMappedPaged.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_PagedExpandLegacyMapped_Paged_async]
-import com.google.common.base.Strings;
-import com.google.showcase.v1beta1.EchoClient;
-import com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse;
-import com.google.showcase.v1beta1.PagedExpandRequest;
-import com.google.showcase.v1beta1.PagedExpandResponseList;
-import java.util.Map;
-
-public class AsyncPagedExpandLegacyMappedPaged {
-
- public static void main(String[] args) throws Exception {
- asyncPagedExpandLegacyMappedPaged();
- }
-
- public static void asyncPagedExpandLegacyMappedPaged() 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 (EchoClient echoClient = EchoClient.create()) {
- PagedExpandRequest request =
- PagedExpandRequest.newBuilder()
- .setContent("content951530617")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- while (true) {
- PagedExpandLegacyMappedResponse response =
- echoClient.pagedExpandLegacyMappedCallable().call(request);
- for (Map.Entry element : response.getAlphabetizedList()) {
- // doThingsWith(element);
- }
- String nextPageToken = response.getNextPageToken();
- if (!Strings.isNullOrEmpty(nextPageToken)) {
- request = request.toBuilder().setPageToken(nextPageToken).build();
- } else {
- break;
- }
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_PagedExpandLegacyMapped_Paged_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/SyncPagedExpandLegacyMapped.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/SyncPagedExpandLegacyMapped.java
deleted file mode 100644
index 6a8a8894a7..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/pagedexpandlegacymapped/SyncPagedExpandLegacyMapped.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_PagedExpandLegacyMapped_sync]
-import com.google.showcase.v1beta1.EchoClient;
-import com.google.showcase.v1beta1.PagedExpandRequest;
-import com.google.showcase.v1beta1.PagedExpandResponseList;
-import java.util.Map;
-
-public class SyncPagedExpandLegacyMapped {
-
- public static void main(String[] args) throws Exception {
- syncPagedExpandLegacyMapped();
- }
-
- public static void syncPagedExpandLegacyMapped() 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 (EchoClient echoClient = EchoClient.create()) {
- PagedExpandRequest request =
- PagedExpandRequest.newBuilder()
- .setContent("content951530617")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- for (Map.Entry element :
- echoClient.pagedExpandLegacyMapped(request).iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_PagedExpandLegacyMapped_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/setiampolicy/AsyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/setiampolicy/AsyncSetIamPolicy.java
deleted file mode 100644
index f0678c1e1f..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/setiampolicy/AsyncSetIamPolicy.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_SetIamPolicy_async]
-import com.google.api.core.ApiFuture;
-import com.google.iam.v1.Policy;
-import com.google.iam.v1.SetIamPolicyRequest;
-import com.google.protobuf.FieldMask;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.EchoClient;
-
-public class AsyncSetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- asyncSetIamPolicy();
- }
-
- public static void asyncSetIamPolicy() 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 (EchoClient echoClient = EchoClient.create()) {
- SetIamPolicyRequest request =
- SetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setPolicy(Policy.newBuilder().build())
- .setUpdateMask(FieldMask.newBuilder().build())
- .build();
- ApiFuture future = echoClient.setIamPolicyCallable().futureCall(request);
- // Do something.
- Policy response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_SetIamPolicy_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/setiampolicy/SyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/setiampolicy/SyncSetIamPolicy.java
deleted file mode 100644
index 3a6e71bc12..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/setiampolicy/SyncSetIamPolicy.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_SetIamPolicy_sync]
-import com.google.iam.v1.Policy;
-import com.google.iam.v1.SetIamPolicyRequest;
-import com.google.protobuf.FieldMask;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.EchoClient;
-
-public class SyncSetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- syncSetIamPolicy();
- }
-
- public static void syncSetIamPolicy() 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 (EchoClient echoClient = EchoClient.create()) {
- SetIamPolicyRequest request =
- SetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setPolicy(Policy.newBuilder().build())
- .setUpdateMask(FieldMask.newBuilder().build())
- .build();
- Policy response = echoClient.setIamPolicy(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_SetIamPolicy_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/testiampermissions/AsyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/testiampermissions/AsyncTestIamPermissions.java
deleted file mode 100644
index 5544dba0b8..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/testiampermissions/AsyncTestIamPermissions.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_TestIamPermissions_async]
-import com.google.api.core.ApiFuture;
-import com.google.iam.v1.TestIamPermissionsRequest;
-import com.google.iam.v1.TestIamPermissionsResponse;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.EchoClient;
-import java.util.ArrayList;
-
-public class AsyncTestIamPermissions {
-
- public static void main(String[] args) throws Exception {
- asyncTestIamPermissions();
- }
-
- public static void asyncTestIamPermissions() 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 (EchoClient echoClient = EchoClient.create()) {
- TestIamPermissionsRequest request =
- TestIamPermissionsRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .addAllPermissions(new ArrayList())
- .build();
- ApiFuture future =
- echoClient.testIamPermissionsCallable().futureCall(request);
- // Do something.
- TestIamPermissionsResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_TestIamPermissions_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/testiampermissions/SyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/testiampermissions/SyncTestIamPermissions.java
deleted file mode 100644
index 810f61f568..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/testiampermissions/SyncTestIamPermissions.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_TestIamPermissions_sync]
-import com.google.iam.v1.TestIamPermissionsRequest;
-import com.google.iam.v1.TestIamPermissionsResponse;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.EchoClient;
-import java.util.ArrayList;
-
-public class SyncTestIamPermissions {
-
- public static void main(String[] args) throws Exception {
- syncTestIamPermissions();
- }
-
- public static void syncTestIamPermissions() 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 (EchoClient echoClient = EchoClient.create()) {
- TestIamPermissionsRequest request =
- TestIamPermissionsRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .addAllPermissions(new ArrayList())
- .build();
- TestIamPermissionsResponse response = echoClient.testIamPermissions(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_TestIamPermissions_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWait.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWait.java
deleted file mode 100644
index a9ad2881d5..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWait.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_Wait_async]
-import com.google.api.core.ApiFuture;
-import com.google.longrunning.Operation;
-import com.google.showcase.v1beta1.EchoClient;
-import com.google.showcase.v1beta1.WaitRequest;
-
-public class AsyncWait {
-
- public static void main(String[] args) throws Exception {
- asyncWait();
- }
-
- public static void asyncWait() 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 (EchoClient echoClient = EchoClient.create()) {
- WaitRequest request = WaitRequest.newBuilder().build();
- ApiFuture future = echoClient.waitCallable().futureCall(request);
- // Do something.
- Operation response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_Wait_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWaitLRO.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWaitLRO.java
deleted file mode 100644
index e8c000fd89..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/AsyncWaitLRO.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_Wait_LRO_async]
-import com.google.api.gax.longrunning.OperationFuture;
-import com.google.showcase.v1beta1.EchoClient;
-import com.google.showcase.v1beta1.WaitMetadata;
-import com.google.showcase.v1beta1.WaitRequest;
-import com.google.showcase.v1beta1.WaitResponse;
-
-public class AsyncWaitLRO {
-
- public static void main(String[] args) throws Exception {
- asyncWaitLRO();
- }
-
- public static void asyncWaitLRO() 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 (EchoClient echoClient = EchoClient.create()) {
- WaitRequest request = WaitRequest.newBuilder().build();
- OperationFuture future =
- echoClient.waitOperationCallable().futureCall(request);
- // Do something.
- WaitResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_Wait_LRO_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/SyncWait.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/SyncWait.java
deleted file mode 100644
index 7f8ae2ca2c..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echo/wait/SyncWait.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Echo_Wait_sync]
-import com.google.showcase.v1beta1.EchoClient;
-import com.google.showcase.v1beta1.WaitRequest;
-import com.google.showcase.v1beta1.WaitResponse;
-
-public class SyncWait {
-
- public static void main(String[] args) throws Exception {
- syncWait();
- }
-
- public static void syncWait() 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 (EchoClient echoClient = EchoClient.create()) {
- WaitRequest request = WaitRequest.newBuilder().build();
- WaitResponse response = echoClient.waitAsync(request).get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Echo_Wait_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echosettings/echo/SyncEcho.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echosettings/echo/SyncEcho.java
deleted file mode 100644
index 41d697a531..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/echosettings/echo/SyncEcho.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_EchoSettings_Echo_sync]
-import com.google.showcase.v1beta1.EchoSettings;
-import java.time.Duration;
-
-public class SyncEcho {
-
- public static void main(String[] args) throws Exception {
- syncEcho();
- }
-
- public static void syncEcho() 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
- EchoSettings.Builder echoSettingsBuilder = EchoSettings.newBuilder();
- echoSettingsBuilder
- .echoSettings()
- .setRetrySettings(
- echoSettingsBuilder
- .echoSettings()
- .getRetrySettings()
- .toBuilder()
- .setTotalTimeout(Duration.ofSeconds(30))
- .build());
- EchoSettings echoSettings = echoSettingsBuilder.build();
- }
-}
-// [END localhost7469_v1beta1_generated_EchoSettings_Echo_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider.java
deleted file mode 100644
index b0d7fa108e..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_Create_SetCredentialsProvider_sync]
-import com.google.api.gax.core.FixedCredentialsProvider;
-import com.google.showcase.v1beta1.IdentityClient;
-import com.google.showcase.v1beta1.IdentitySettings;
-import com.google.showcase.v1beta1.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
- IdentitySettings identitySettings =
- IdentitySettings.newBuilder()
- .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- .build();
- IdentityClient identityClient = IdentityClient.create(identitySettings);
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_Create_SetCredentialsProvider_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider1.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider1.java
deleted file mode 100644
index c3a95b9509..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetCredentialsProvider1.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_Create_SetCredentialsProvider1_sync]
-import com.google.showcase.v1beta1.IdentityClient;
-import com.google.showcase.v1beta1.IdentitySettings;
-
-public class SyncCreateSetCredentialsProvider1 {
-
- public static void main(String[] args) throws Exception {
- syncCreateSetCredentialsProvider1();
- }
-
- public static void syncCreateSetCredentialsProvider1() 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
- IdentitySettings identitySettings = IdentitySettings.newHttpJsonBuilder().build();
- IdentityClient identityClient = IdentityClient.create(identitySettings);
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_Create_SetCredentialsProvider1_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetEndpoint.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetEndpoint.java
deleted file mode 100644
index c477b515d6..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/create/SyncCreateSetEndpoint.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_Create_SetEndpoint_sync]
-import com.google.showcase.v1beta1.IdentityClient;
-import com.google.showcase.v1beta1.IdentitySettings;
-import com.google.showcase.v1beta1.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
- IdentitySettings identitySettings =
- IdentitySettings.newBuilder().setEndpoint(myEndpoint).build();
- IdentityClient identityClient = IdentityClient.create(identitySettings);
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_Create_SetEndpoint_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/AsyncCreateUser.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/AsyncCreateUser.java
deleted file mode 100644
index 859b9f7752..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/AsyncCreateUser.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_CreateUser_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.CreateUserRequest;
-import com.google.showcase.v1beta1.IdentityClient;
-import com.google.showcase.v1beta1.User;
-
-public class AsyncCreateUser {
-
- public static void main(String[] args) throws Exception {
- asyncCreateUser();
- }
-
- public static void asyncCreateUser() 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 (IdentityClient identityClient = IdentityClient.create()) {
- CreateUserRequest request =
- CreateUserRequest.newBuilder().setUser(User.newBuilder().build()).build();
- ApiFuture future = identityClient.createUserCallable().futureCall(request);
- // Do something.
- User response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_CreateUser_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUser.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUser.java
deleted file mode 100644
index d2d1aeca94..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUser.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_CreateUser_sync]
-import com.google.showcase.v1beta1.CreateUserRequest;
-import com.google.showcase.v1beta1.IdentityClient;
-import com.google.showcase.v1beta1.User;
-
-public class SyncCreateUser {
-
- public static void main(String[] args) throws Exception {
- syncCreateUser();
- }
-
- public static void syncCreateUser() 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 (IdentityClient identityClient = IdentityClient.create()) {
- CreateUserRequest request =
- CreateUserRequest.newBuilder().setUser(User.newBuilder().build()).build();
- User response = identityClient.createUser(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_CreateUser_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringString.java
deleted file mode 100644
index 49b75addfe..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringString.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_CreateUser_StringString_sync]
-import com.google.showcase.v1beta1.IdentityClient;
-import com.google.showcase.v1beta1.User;
-
-public class SyncCreateUserStringString {
-
- public static void main(String[] args) throws Exception {
- syncCreateUserStringString();
- }
-
- public static void syncCreateUserStringString() 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 (IdentityClient identityClient = IdentityClient.create()) {
- String displayName = "displayName1714148973";
- String email = "email96619420";
- User response = identityClient.createUser(displayName, email);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_CreateUser_StringString_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringStringIntStringBooleanDouble.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringStringIntStringBooleanDouble.java
deleted file mode 100644
index 3c84dd1cba..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/createuser/SyncCreateUserStringStringIntStringBooleanDouble.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_CreateUser_StringStringIntStringBooleanDouble_sync]
-import com.google.showcase.v1beta1.IdentityClient;
-import com.google.showcase.v1beta1.User;
-
-public class SyncCreateUserStringStringIntStringBooleanDouble {
-
- public static void main(String[] args) throws Exception {
- syncCreateUserStringStringIntStringBooleanDouble();
- }
-
- public static void syncCreateUserStringStringIntStringBooleanDouble() 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 (IdentityClient identityClient = IdentityClient.create()) {
- String displayName = "displayName1714148973";
- String email = "email96619420";
- int age = 96511;
- String nickname = "nickname70690926";
- boolean enableNotifications = true;
- double heightFeet = -1032737338;
- User response =
- identityClient.createUser(
- displayName, email, age, nickname, enableNotifications, heightFeet);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_CreateUser_StringStringIntStringBooleanDouble_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/AsyncDeleteUser.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/AsyncDeleteUser.java
deleted file mode 100644
index 705614cc8d..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/AsyncDeleteUser.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_DeleteUser_async]
-import com.google.api.core.ApiFuture;
-import com.google.protobuf.Empty;
-import com.google.showcase.v1beta1.DeleteUserRequest;
-import com.google.showcase.v1beta1.IdentityClient;
-import com.google.showcase.v1beta1.UserName;
-
-public class AsyncDeleteUser {
-
- public static void main(String[] args) throws Exception {
- asyncDeleteUser();
- }
-
- public static void asyncDeleteUser() 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 (IdentityClient identityClient = IdentityClient.create()) {
- DeleteUserRequest request =
- DeleteUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build();
- ApiFuture future = identityClient.deleteUserCallable().futureCall(request);
- // Do something.
- future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_DeleteUser_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUser.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUser.java
deleted file mode 100644
index 5118f55fff..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUser.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_DeleteUser_sync]
-import com.google.protobuf.Empty;
-import com.google.showcase.v1beta1.DeleteUserRequest;
-import com.google.showcase.v1beta1.IdentityClient;
-import com.google.showcase.v1beta1.UserName;
-
-public class SyncDeleteUser {
-
- public static void main(String[] args) throws Exception {
- syncDeleteUser();
- }
-
- public static void syncDeleteUser() 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 (IdentityClient identityClient = IdentityClient.create()) {
- DeleteUserRequest request =
- DeleteUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build();
- identityClient.deleteUser(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_DeleteUser_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserString.java
deleted file mode 100644
index 3e30b22c1e..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserString.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_DeleteUser_String_sync]
-import com.google.protobuf.Empty;
-import com.google.showcase.v1beta1.IdentityClient;
-import com.google.showcase.v1beta1.UserName;
-
-public class SyncDeleteUserString {
-
- public static void main(String[] args) throws Exception {
- syncDeleteUserString();
- }
-
- public static void syncDeleteUserString() 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 (IdentityClient identityClient = IdentityClient.create()) {
- String name = UserName.of("[USER]").toString();
- identityClient.deleteUser(name);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_DeleteUser_String_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserUsername.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserUsername.java
deleted file mode 100644
index c5d694320c..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/deleteuser/SyncDeleteUserUsername.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_DeleteUser_Username_sync]
-import com.google.protobuf.Empty;
-import com.google.showcase.v1beta1.IdentityClient;
-import com.google.showcase.v1beta1.UserName;
-
-public class SyncDeleteUserUsername {
-
- public static void main(String[] args) throws Exception {
- syncDeleteUserUsername();
- }
-
- public static void syncDeleteUserUsername() 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 (IdentityClient identityClient = IdentityClient.create()) {
- UserName name = UserName.of("[USER]");
- identityClient.deleteUser(name);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_DeleteUser_Username_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getiampolicy/AsyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getiampolicy/AsyncGetIamPolicy.java
deleted file mode 100644
index f4fd6b4d56..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getiampolicy/AsyncGetIamPolicy.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_GetIamPolicy_async]
-import com.google.api.core.ApiFuture;
-import com.google.iam.v1.GetIamPolicyRequest;
-import com.google.iam.v1.GetPolicyOptions;
-import com.google.iam.v1.Policy;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.IdentityClient;
-
-public class AsyncGetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- asyncGetIamPolicy();
- }
-
- public static void asyncGetIamPolicy() 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 (IdentityClient identityClient = IdentityClient.create()) {
- GetIamPolicyRequest request =
- GetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setOptions(GetPolicyOptions.newBuilder().build())
- .build();
- ApiFuture future = identityClient.getIamPolicyCallable().futureCall(request);
- // Do something.
- Policy response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_GetIamPolicy_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getiampolicy/SyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getiampolicy/SyncGetIamPolicy.java
deleted file mode 100644
index 0c58623dbb..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getiampolicy/SyncGetIamPolicy.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_GetIamPolicy_sync]
-import com.google.iam.v1.GetIamPolicyRequest;
-import com.google.iam.v1.GetPolicyOptions;
-import com.google.iam.v1.Policy;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.IdentityClient;
-
-public class SyncGetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- syncGetIamPolicy();
- }
-
- public static void syncGetIamPolicy() 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 (IdentityClient identityClient = IdentityClient.create()) {
- GetIamPolicyRequest request =
- GetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setOptions(GetPolicyOptions.newBuilder().build())
- .build();
- Policy response = identityClient.getIamPolicy(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_GetIamPolicy_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getlocation/AsyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getlocation/AsyncGetLocation.java
deleted file mode 100644
index 026ce4b071..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getlocation/AsyncGetLocation.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_GetLocation_async]
-import com.google.api.core.ApiFuture;
-import com.google.cloud.location.GetLocationRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.IdentityClient;
-
-public class AsyncGetLocation {
-
- public static void main(String[] args) throws Exception {
- asyncGetLocation();
- }
-
- public static void asyncGetLocation() 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 (IdentityClient identityClient = IdentityClient.create()) {
- GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
- ApiFuture future = identityClient.getLocationCallable().futureCall(request);
- // Do something.
- Location response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_GetLocation_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getlocation/SyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getlocation/SyncGetLocation.java
deleted file mode 100644
index 249ff9d213..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getlocation/SyncGetLocation.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_GetLocation_sync]
-import com.google.cloud.location.GetLocationRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.IdentityClient;
-
-public class SyncGetLocation {
-
- public static void main(String[] args) throws Exception {
- syncGetLocation();
- }
-
- public static void syncGetLocation() 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 (IdentityClient identityClient = IdentityClient.create()) {
- GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
- Location response = identityClient.getLocation(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_GetLocation_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/AsyncGetUser.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/AsyncGetUser.java
deleted file mode 100644
index 87bb440933..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/AsyncGetUser.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_GetUser_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.GetUserRequest;
-import com.google.showcase.v1beta1.IdentityClient;
-import com.google.showcase.v1beta1.User;
-import com.google.showcase.v1beta1.UserName;
-
-public class AsyncGetUser {
-
- public static void main(String[] args) throws Exception {
- asyncGetUser();
- }
-
- public static void asyncGetUser() 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 (IdentityClient identityClient = IdentityClient.create()) {
- GetUserRequest request =
- GetUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build();
- ApiFuture future = identityClient.getUserCallable().futureCall(request);
- // Do something.
- User response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_GetUser_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUser.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUser.java
deleted file mode 100644
index 3bcf8214f9..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUser.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_GetUser_sync]
-import com.google.showcase.v1beta1.GetUserRequest;
-import com.google.showcase.v1beta1.IdentityClient;
-import com.google.showcase.v1beta1.User;
-import com.google.showcase.v1beta1.UserName;
-
-public class SyncGetUser {
-
- public static void main(String[] args) throws Exception {
- syncGetUser();
- }
-
- public static void syncGetUser() 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 (IdentityClient identityClient = IdentityClient.create()) {
- GetUserRequest request =
- GetUserRequest.newBuilder().setName(UserName.of("[USER]").toString()).build();
- User response = identityClient.getUser(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_GetUser_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserString.java
deleted file mode 100644
index 2ba5cc43e7..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserString.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_GetUser_String_sync]
-import com.google.showcase.v1beta1.IdentityClient;
-import com.google.showcase.v1beta1.User;
-import com.google.showcase.v1beta1.UserName;
-
-public class SyncGetUserString {
-
- public static void main(String[] args) throws Exception {
- syncGetUserString();
- }
-
- public static void syncGetUserString() 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 (IdentityClient identityClient = IdentityClient.create()) {
- String name = UserName.of("[USER]").toString();
- User response = identityClient.getUser(name);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_GetUser_String_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserUsername.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserUsername.java
deleted file mode 100644
index 4ad0ef1630..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/getuser/SyncGetUserUsername.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_GetUser_Username_sync]
-import com.google.showcase.v1beta1.IdentityClient;
-import com.google.showcase.v1beta1.User;
-import com.google.showcase.v1beta1.UserName;
-
-public class SyncGetUserUsername {
-
- public static void main(String[] args) throws Exception {
- syncGetUserUsername();
- }
-
- public static void syncGetUserUsername() 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 (IdentityClient identityClient = IdentityClient.create()) {
- UserName name = UserName.of("[USER]");
- User response = identityClient.getUser(name);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_GetUser_Username_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listlocations/AsyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listlocations/AsyncListLocations.java
deleted file mode 100644
index 7a1d638e57..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listlocations/AsyncListLocations.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_ListLocations_async]
-import com.google.api.core.ApiFuture;
-import com.google.cloud.location.ListLocationsRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.IdentityClient;
-
-public class AsyncListLocations {
-
- public static void main(String[] args) throws Exception {
- asyncListLocations();
- }
-
- public static void asyncListLocations() 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 (IdentityClient identityClient = IdentityClient.create()) {
- ListLocationsRequest request =
- ListLocationsRequest.newBuilder()
- .setName("name3373707")
- .setFilter("filter-1274492040")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- ApiFuture future = identityClient.listLocationsPagedCallable().futureCall(request);
- // Do something.
- for (Location element : future.get().iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_ListLocations_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listlocations/AsyncListLocationsPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listlocations/AsyncListLocationsPaged.java
deleted file mode 100644
index 1cb244c6c4..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listlocations/AsyncListLocationsPaged.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_ListLocations_Paged_async]
-import com.google.cloud.location.ListLocationsRequest;
-import com.google.cloud.location.ListLocationsResponse;
-import com.google.cloud.location.Location;
-import com.google.common.base.Strings;
-import com.google.showcase.v1beta1.IdentityClient;
-
-public class AsyncListLocationsPaged {
-
- public static void main(String[] args) throws Exception {
- asyncListLocationsPaged();
- }
-
- public static void asyncListLocationsPaged() 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 (IdentityClient identityClient = IdentityClient.create()) {
- ListLocationsRequest request =
- ListLocationsRequest.newBuilder()
- .setName("name3373707")
- .setFilter("filter-1274492040")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- while (true) {
- ListLocationsResponse response = identityClient.listLocationsCallable().call(request);
- for (Location element : response.getLocationsList()) {
- // doThingsWith(element);
- }
- String nextPageToken = response.getNextPageToken();
- if (!Strings.isNullOrEmpty(nextPageToken)) {
- request = request.toBuilder().setPageToken(nextPageToken).build();
- } else {
- break;
- }
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_ListLocations_Paged_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listlocations/SyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listlocations/SyncListLocations.java
deleted file mode 100644
index 3bd2bf3123..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listlocations/SyncListLocations.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_ListLocations_sync]
-import com.google.cloud.location.ListLocationsRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.IdentityClient;
-
-public class SyncListLocations {
-
- public static void main(String[] args) throws Exception {
- syncListLocations();
- }
-
- public static void syncListLocations() 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 (IdentityClient identityClient = IdentityClient.create()) {
- ListLocationsRequest request =
- ListLocationsRequest.newBuilder()
- .setName("name3373707")
- .setFilter("filter-1274492040")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- for (Location element : identityClient.listLocations(request).iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_ListLocations_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsers.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsers.java
deleted file mode 100644
index 70a646734b..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsers.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_ListUsers_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.IdentityClient;
-import com.google.showcase.v1beta1.ListUsersRequest;
-import com.google.showcase.v1beta1.User;
-
-public class AsyncListUsers {
-
- public static void main(String[] args) throws Exception {
- asyncListUsers();
- }
-
- public static void asyncListUsers() 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 (IdentityClient identityClient = IdentityClient.create()) {
- ListUsersRequest request =
- ListUsersRequest.newBuilder()
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- ApiFuture future = identityClient.listUsersPagedCallable().futureCall(request);
- // Do something.
- for (User element : future.get().iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_ListUsers_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsersPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsersPaged.java
deleted file mode 100644
index 0c198a93bc..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/AsyncListUsersPaged.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_ListUsers_Paged_async]
-import com.google.common.base.Strings;
-import com.google.showcase.v1beta1.IdentityClient;
-import com.google.showcase.v1beta1.ListUsersRequest;
-import com.google.showcase.v1beta1.ListUsersResponse;
-import com.google.showcase.v1beta1.User;
-
-public class AsyncListUsersPaged {
-
- public static void main(String[] args) throws Exception {
- asyncListUsersPaged();
- }
-
- public static void asyncListUsersPaged() 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 (IdentityClient identityClient = IdentityClient.create()) {
- ListUsersRequest request =
- ListUsersRequest.newBuilder()
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- while (true) {
- ListUsersResponse response = identityClient.listUsersCallable().call(request);
- for (User element : response.getUsersList()) {
- // doThingsWith(element);
- }
- String nextPageToken = response.getNextPageToken();
- if (!Strings.isNullOrEmpty(nextPageToken)) {
- request = request.toBuilder().setPageToken(nextPageToken).build();
- } else {
- break;
- }
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_ListUsers_Paged_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/SyncListUsers.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/SyncListUsers.java
deleted file mode 100644
index a8cf04f2ec..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/listusers/SyncListUsers.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_ListUsers_sync]
-import com.google.showcase.v1beta1.IdentityClient;
-import com.google.showcase.v1beta1.ListUsersRequest;
-import com.google.showcase.v1beta1.User;
-
-public class SyncListUsers {
-
- public static void main(String[] args) throws Exception {
- syncListUsers();
- }
-
- public static void syncListUsers() 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 (IdentityClient identityClient = IdentityClient.create()) {
- ListUsersRequest request =
- ListUsersRequest.newBuilder()
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- for (User element : identityClient.listUsers(request).iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_ListUsers_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/setiampolicy/AsyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/setiampolicy/AsyncSetIamPolicy.java
deleted file mode 100644
index 3cd87b2f7a..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/setiampolicy/AsyncSetIamPolicy.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_SetIamPolicy_async]
-import com.google.api.core.ApiFuture;
-import com.google.iam.v1.Policy;
-import com.google.iam.v1.SetIamPolicyRequest;
-import com.google.protobuf.FieldMask;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.IdentityClient;
-
-public class AsyncSetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- asyncSetIamPolicy();
- }
-
- public static void asyncSetIamPolicy() 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 (IdentityClient identityClient = IdentityClient.create()) {
- SetIamPolicyRequest request =
- SetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setPolicy(Policy.newBuilder().build())
- .setUpdateMask(FieldMask.newBuilder().build())
- .build();
- ApiFuture future = identityClient.setIamPolicyCallable().futureCall(request);
- // Do something.
- Policy response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_SetIamPolicy_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/setiampolicy/SyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/setiampolicy/SyncSetIamPolicy.java
deleted file mode 100644
index 89808a452b..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/setiampolicy/SyncSetIamPolicy.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_SetIamPolicy_sync]
-import com.google.iam.v1.Policy;
-import com.google.iam.v1.SetIamPolicyRequest;
-import com.google.protobuf.FieldMask;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.IdentityClient;
-
-public class SyncSetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- syncSetIamPolicy();
- }
-
- public static void syncSetIamPolicy() 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 (IdentityClient identityClient = IdentityClient.create()) {
- SetIamPolicyRequest request =
- SetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setPolicy(Policy.newBuilder().build())
- .setUpdateMask(FieldMask.newBuilder().build())
- .build();
- Policy response = identityClient.setIamPolicy(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_SetIamPolicy_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/testiampermissions/AsyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/testiampermissions/AsyncTestIamPermissions.java
deleted file mode 100644
index 8f681fd485..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/testiampermissions/AsyncTestIamPermissions.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_TestIamPermissions_async]
-import com.google.api.core.ApiFuture;
-import com.google.iam.v1.TestIamPermissionsRequest;
-import com.google.iam.v1.TestIamPermissionsResponse;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.IdentityClient;
-import java.util.ArrayList;
-
-public class AsyncTestIamPermissions {
-
- public static void main(String[] args) throws Exception {
- asyncTestIamPermissions();
- }
-
- public static void asyncTestIamPermissions() 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 (IdentityClient identityClient = IdentityClient.create()) {
- TestIamPermissionsRequest request =
- TestIamPermissionsRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .addAllPermissions(new ArrayList())
- .build();
- ApiFuture future =
- identityClient.testIamPermissionsCallable().futureCall(request);
- // Do something.
- TestIamPermissionsResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_TestIamPermissions_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/testiampermissions/SyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/testiampermissions/SyncTestIamPermissions.java
deleted file mode 100644
index 00a7bdc013..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/testiampermissions/SyncTestIamPermissions.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_TestIamPermissions_sync]
-import com.google.iam.v1.TestIamPermissionsRequest;
-import com.google.iam.v1.TestIamPermissionsResponse;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.IdentityClient;
-import java.util.ArrayList;
-
-public class SyncTestIamPermissions {
-
- public static void main(String[] args) throws Exception {
- syncTestIamPermissions();
- }
-
- public static void syncTestIamPermissions() 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 (IdentityClient identityClient = IdentityClient.create()) {
- TestIamPermissionsRequest request =
- TestIamPermissionsRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .addAllPermissions(new ArrayList())
- .build();
- TestIamPermissionsResponse response = identityClient.testIamPermissions(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_TestIamPermissions_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/updateuser/AsyncUpdateUser.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/updateuser/AsyncUpdateUser.java
deleted file mode 100644
index 96edca1b03..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/updateuser/AsyncUpdateUser.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_UpdateUser_async]
-import com.google.api.core.ApiFuture;
-import com.google.protobuf.FieldMask;
-import com.google.showcase.v1beta1.IdentityClient;
-import com.google.showcase.v1beta1.UpdateUserRequest;
-import com.google.showcase.v1beta1.User;
-
-public class AsyncUpdateUser {
-
- public static void main(String[] args) throws Exception {
- asyncUpdateUser();
- }
-
- public static void asyncUpdateUser() 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 (IdentityClient identityClient = IdentityClient.create()) {
- UpdateUserRequest request =
- UpdateUserRequest.newBuilder()
- .setUser(User.newBuilder().build())
- .setUpdateMask(FieldMask.newBuilder().build())
- .build();
- ApiFuture future = identityClient.updateUserCallable().futureCall(request);
- // Do something.
- User response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_UpdateUser_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/updateuser/SyncUpdateUser.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/updateuser/SyncUpdateUser.java
deleted file mode 100644
index 091dbaf14a..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identity/updateuser/SyncUpdateUser.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Identity_UpdateUser_sync]
-import com.google.protobuf.FieldMask;
-import com.google.showcase.v1beta1.IdentityClient;
-import com.google.showcase.v1beta1.UpdateUserRequest;
-import com.google.showcase.v1beta1.User;
-
-public class SyncUpdateUser {
-
- public static void main(String[] args) throws Exception {
- syncUpdateUser();
- }
-
- public static void syncUpdateUser() 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 (IdentityClient identityClient = IdentityClient.create()) {
- UpdateUserRequest request =
- UpdateUserRequest.newBuilder()
- .setUser(User.newBuilder().build())
- .setUpdateMask(FieldMask.newBuilder().build())
- .build();
- User response = identityClient.updateUser(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Identity_UpdateUser_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identitysettings/createuser/SyncCreateUser.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identitysettings/createuser/SyncCreateUser.java
deleted file mode 100644
index e34ebf6a8b..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/identitysettings/createuser/SyncCreateUser.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_IdentitySettings_CreateUser_sync]
-import com.google.showcase.v1beta1.IdentitySettings;
-import java.time.Duration;
-
-public class SyncCreateUser {
-
- public static void main(String[] args) throws Exception {
- syncCreateUser();
- }
-
- public static void syncCreateUser() 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
- IdentitySettings.Builder identitySettingsBuilder = IdentitySettings.newBuilder();
- identitySettingsBuilder
- .createUserSettings()
- .setRetrySettings(
- identitySettingsBuilder
- .createUserSettings()
- .getRetrySettings()
- .toBuilder()
- .setTotalTimeout(Duration.ofSeconds(30))
- .build());
- IdentitySettings identitySettings = identitySettingsBuilder.build();
- }
-}
-// [END localhost7469_v1beta1_generated_IdentitySettings_CreateUser_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/connect/AsyncConnect.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/connect/AsyncConnect.java
deleted file mode 100644
index 2071cd762f..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/connect/AsyncConnect.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_Connect_async]
-import com.google.api.gax.rpc.BidiStream;
-import com.google.showcase.v1beta1.ConnectRequest;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.StreamBlurbsResponse;
-
-public class AsyncConnect {
-
- public static void main(String[] args) throws Exception {
- asyncConnect();
- }
-
- public static void asyncConnect() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- BidiStream bidiStream =
- messagingClient.connectCallable().call();
- ConnectRequest request = ConnectRequest.newBuilder().build();
- bidiStream.send(request);
- for (StreamBlurbsResponse response : bidiStream) {
- // Do something when a response is received.
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_Connect_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider.java
deleted file mode 100644
index 5a281fd5a9..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_Create_SetCredentialsProvider_sync]
-import com.google.api.gax.core.FixedCredentialsProvider;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.MessagingSettings;
-import com.google.showcase.v1beta1.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
- MessagingSettings messagingSettings =
- MessagingSettings.newBuilder()
- .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- .build();
- MessagingClient messagingClient = MessagingClient.create(messagingSettings);
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_Create_SetCredentialsProvider_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider1.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider1.java
deleted file mode 100644
index 5bd380e27a..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetCredentialsProvider1.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_Create_SetCredentialsProvider1_sync]
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.MessagingSettings;
-
-public class SyncCreateSetCredentialsProvider1 {
-
- public static void main(String[] args) throws Exception {
- syncCreateSetCredentialsProvider1();
- }
-
- public static void syncCreateSetCredentialsProvider1() 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
- MessagingSettings messagingSettings = MessagingSettings.newHttpJsonBuilder().build();
- MessagingClient messagingClient = MessagingClient.create(messagingSettings);
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_Create_SetCredentialsProvider1_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetEndpoint.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetEndpoint.java
deleted file mode 100644
index b75d420613..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/create/SyncCreateSetEndpoint.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_Create_SetEndpoint_sync]
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.MessagingSettings;
-import com.google.showcase.v1beta1.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
- MessagingSettings messagingSettings =
- MessagingSettings.newBuilder().setEndpoint(myEndpoint).build();
- MessagingClient messagingClient = MessagingClient.create(messagingSettings);
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_Create_SetEndpoint_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/AsyncCreateBlurb.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/AsyncCreateBlurb.java
deleted file mode 100644
index 877bf6e903..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/AsyncCreateBlurb.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.CreateBlurbRequest;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.ProfileName;
-
-public class AsyncCreateBlurb {
-
- public static void main(String[] args) throws Exception {
- asyncCreateBlurb();
- }
-
- public static void asyncCreateBlurb() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- CreateBlurbRequest request =
- CreateBlurbRequest.newBuilder()
- .setParent(ProfileName.of("[USER]").toString())
- .setBlurb(Blurb.newBuilder().build())
- .build();
- ApiFuture future = messagingClient.createBlurbCallable().futureCall(request);
- // Do something.
- Blurb response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurb.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurb.java
deleted file mode 100644
index 43e3f7e48f..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurb.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_sync]
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.CreateBlurbRequest;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.ProfileName;
-
-public class SyncCreateBlurb {
-
- public static void main(String[] args) throws Exception {
- syncCreateBlurb();
- }
-
- public static void syncCreateBlurb() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- CreateBlurbRequest request =
- CreateBlurbRequest.newBuilder()
- .setParent(ProfileName.of("[USER]").toString())
- .setBlurb(Blurb.newBuilder().build())
- .build();
- Blurb response = messagingClient.createBlurb(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringBytestring.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringBytestring.java
deleted file mode 100644
index 7370c8f3cd..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringBytestring.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_ProfilenameStringBytestring_sync]
-import com.google.protobuf.ByteString;
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.ProfileName;
-import com.google.showcase.v1beta1.UserName;
-
-public class SyncCreateBlurbProfilenameStringBytestring {
-
- public static void main(String[] args) throws Exception {
- syncCreateBlurbProfilenameStringBytestring();
- }
-
- public static void syncCreateBlurbProfilenameStringBytestring() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- ProfileName parent = ProfileName.of("[USER]");
- String user = UserName.of("[USER]").toString();
- ByteString image = ByteString.EMPTY;
- Blurb response = messagingClient.createBlurb(parent, user, image);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_ProfilenameStringBytestring_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringString.java
deleted file mode 100644
index 711ccc72c5..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameStringString.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_ProfilenameStringString_sync]
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.ProfileName;
-import com.google.showcase.v1beta1.UserName;
-
-public class SyncCreateBlurbProfilenameStringString {
-
- public static void main(String[] args) throws Exception {
- syncCreateBlurbProfilenameStringString();
- }
-
- public static void syncCreateBlurbProfilenameStringString() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- ProfileName parent = ProfileName.of("[USER]");
- String user = UserName.of("[USER]").toString();
- String text = "text3556653";
- Blurb response = messagingClient.createBlurb(parent, user, text);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_ProfilenameStringString_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameBytestring.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameBytestring.java
deleted file mode 100644
index d3bcfae8d6..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameBytestring.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_ProfilenameUsernameBytestring_sync]
-import com.google.protobuf.ByteString;
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.ProfileName;
-import com.google.showcase.v1beta1.UserName;
-
-public class SyncCreateBlurbProfilenameUsernameBytestring {
-
- public static void main(String[] args) throws Exception {
- syncCreateBlurbProfilenameUsernameBytestring();
- }
-
- public static void syncCreateBlurbProfilenameUsernameBytestring() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- ProfileName parent = ProfileName.of("[USER]");
- UserName user = UserName.of("[USER]");
- ByteString image = ByteString.EMPTY;
- Blurb response = messagingClient.createBlurb(parent, user, image);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_ProfilenameUsernameBytestring_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameString.java
deleted file mode 100644
index 4952469734..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbProfilenameUsernameString.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_ProfilenameUsernameString_sync]
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.ProfileName;
-import com.google.showcase.v1beta1.UserName;
-
-public class SyncCreateBlurbProfilenameUsernameString {
-
- public static void main(String[] args) throws Exception {
- syncCreateBlurbProfilenameUsernameString();
- }
-
- public static void syncCreateBlurbProfilenameUsernameString() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- ProfileName parent = ProfileName.of("[USER]");
- UserName user = UserName.of("[USER]");
- String text = "text3556653";
- Blurb response = messagingClient.createBlurb(parent, user, text);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_ProfilenameUsernameString_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringBytestring.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringBytestring.java
deleted file mode 100644
index 5428a4d3db..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringBytestring.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_RoomnameStringBytestring_sync]
-import com.google.protobuf.ByteString;
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.RoomName;
-import com.google.showcase.v1beta1.UserName;
-
-public class SyncCreateBlurbRoomnameStringBytestring {
-
- public static void main(String[] args) throws Exception {
- syncCreateBlurbRoomnameStringBytestring();
- }
-
- public static void syncCreateBlurbRoomnameStringBytestring() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- RoomName parent = RoomName.of("[ROOM]");
- String user = UserName.of("[USER]").toString();
- ByteString image = ByteString.EMPTY;
- Blurb response = messagingClient.createBlurb(parent, user, image);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_RoomnameStringBytestring_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringString.java
deleted file mode 100644
index df685cd13a..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameStringString.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_RoomnameStringString_sync]
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.RoomName;
-import com.google.showcase.v1beta1.UserName;
-
-public class SyncCreateBlurbRoomnameStringString {
-
- public static void main(String[] args) throws Exception {
- syncCreateBlurbRoomnameStringString();
- }
-
- public static void syncCreateBlurbRoomnameStringString() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- RoomName parent = RoomName.of("[ROOM]");
- String user = UserName.of("[USER]").toString();
- String text = "text3556653";
- Blurb response = messagingClient.createBlurb(parent, user, text);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_RoomnameStringString_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameBytestring.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameBytestring.java
deleted file mode 100644
index d94c3cc0b9..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameBytestring.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_RoomnameUsernameBytestring_sync]
-import com.google.protobuf.ByteString;
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.RoomName;
-import com.google.showcase.v1beta1.UserName;
-
-public class SyncCreateBlurbRoomnameUsernameBytestring {
-
- public static void main(String[] args) throws Exception {
- syncCreateBlurbRoomnameUsernameBytestring();
- }
-
- public static void syncCreateBlurbRoomnameUsernameBytestring() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- RoomName parent = RoomName.of("[ROOM]");
- UserName user = UserName.of("[USER]");
- ByteString image = ByteString.EMPTY;
- Blurb response = messagingClient.createBlurb(parent, user, image);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_RoomnameUsernameBytestring_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameString.java
deleted file mode 100644
index 7037c6487e..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbRoomnameUsernameString.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_RoomnameUsernameString_sync]
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.RoomName;
-import com.google.showcase.v1beta1.UserName;
-
-public class SyncCreateBlurbRoomnameUsernameString {
-
- public static void main(String[] args) throws Exception {
- syncCreateBlurbRoomnameUsernameString();
- }
-
- public static void syncCreateBlurbRoomnameUsernameString() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- RoomName parent = RoomName.of("[ROOM]");
- UserName user = UserName.of("[USER]");
- String text = "text3556653";
- Blurb response = messagingClient.createBlurb(parent, user, text);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_RoomnameUsernameString_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringBytestring.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringBytestring.java
deleted file mode 100644
index 8a7839c018..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringBytestring.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_StringStringBytestring_sync]
-import com.google.protobuf.ByteString;
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.ProfileName;
-import com.google.showcase.v1beta1.UserName;
-
-public class SyncCreateBlurbStringStringBytestring {
-
- public static void main(String[] args) throws Exception {
- syncCreateBlurbStringStringBytestring();
- }
-
- public static void syncCreateBlurbStringStringBytestring() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- String parent = ProfileName.of("[USER]").toString();
- String user = UserName.of("[USER]").toString();
- ByteString image = ByteString.EMPTY;
- Blurb response = messagingClient.createBlurb(parent, user, image);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_StringStringBytestring_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringString.java
deleted file mode 100644
index d2736114fa..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringStringString.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_StringStringString_sync]
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.ProfileName;
-import com.google.showcase.v1beta1.UserName;
-
-public class SyncCreateBlurbStringStringString {
-
- public static void main(String[] args) throws Exception {
- syncCreateBlurbStringStringString();
- }
-
- public static void syncCreateBlurbStringStringString() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- String parent = ProfileName.of("[USER]").toString();
- String user = UserName.of("[USER]").toString();
- String text = "text3556653";
- Blurb response = messagingClient.createBlurb(parent, user, text);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_StringStringString_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameBytestring.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameBytestring.java
deleted file mode 100644
index 69a186f8af..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameBytestring.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_StringUsernameBytestring_sync]
-import com.google.protobuf.ByteString;
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.ProfileName;
-import com.google.showcase.v1beta1.UserName;
-
-public class SyncCreateBlurbStringUsernameBytestring {
-
- public static void main(String[] args) throws Exception {
- syncCreateBlurbStringUsernameBytestring();
- }
-
- public static void syncCreateBlurbStringUsernameBytestring() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- String parent = ProfileName.of("[USER]").toString();
- UserName user = UserName.of("[USER]");
- ByteString image = ByteString.EMPTY;
- Blurb response = messagingClient.createBlurb(parent, user, image);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_StringUsernameBytestring_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameString.java
deleted file mode 100644
index 7f8b88b037..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createblurb/SyncCreateBlurbStringUsernameString.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_CreateBlurb_StringUsernameString_sync]
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.ProfileName;
-import com.google.showcase.v1beta1.UserName;
-
-public class SyncCreateBlurbStringUsernameString {
-
- public static void main(String[] args) throws Exception {
- syncCreateBlurbStringUsernameString();
- }
-
- public static void syncCreateBlurbStringUsernameString() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- String parent = ProfileName.of("[USER]").toString();
- UserName user = UserName.of("[USER]");
- String text = "text3556653";
- Blurb response = messagingClient.createBlurb(parent, user, text);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_CreateBlurb_StringUsernameString_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/AsyncCreateRoom.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/AsyncCreateRoom.java
deleted file mode 100644
index df2af2b34a..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/AsyncCreateRoom.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_CreateRoom_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.CreateRoomRequest;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.Room;
-
-public class AsyncCreateRoom {
-
- public static void main(String[] args) throws Exception {
- asyncCreateRoom();
- }
-
- public static void asyncCreateRoom() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- CreateRoomRequest request =
- CreateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build();
- ApiFuture future = messagingClient.createRoomCallable().futureCall(request);
- // Do something.
- Room response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_CreateRoom_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoom.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoom.java
deleted file mode 100644
index bf0cab896e..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoom.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_CreateRoom_sync]
-import com.google.showcase.v1beta1.CreateRoomRequest;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.Room;
-
-public class SyncCreateRoom {
-
- public static void main(String[] args) throws Exception {
- syncCreateRoom();
- }
-
- public static void syncCreateRoom() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- CreateRoomRequest request =
- CreateRoomRequest.newBuilder().setRoom(Room.newBuilder().build()).build();
- Room response = messagingClient.createRoom(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_CreateRoom_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoomStringString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoomStringString.java
deleted file mode 100644
index 2d8b8bb8e2..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/createroom/SyncCreateRoomStringString.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_CreateRoom_StringString_sync]
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.Room;
-
-public class SyncCreateRoomStringString {
-
- public static void main(String[] args) throws Exception {
- syncCreateRoomStringString();
- }
-
- public static void syncCreateRoomStringString() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- String displayName = "displayName1714148973";
- String description = "description-1724546052";
- Room response = messagingClient.createRoom(displayName, description);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_CreateRoom_StringString_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/AsyncDeleteBlurb.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/AsyncDeleteBlurb.java
deleted file mode 100644
index 36cfe20e96..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/AsyncDeleteBlurb.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_DeleteBlurb_async]
-import com.google.api.core.ApiFuture;
-import com.google.protobuf.Empty;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.DeleteBlurbRequest;
-import com.google.showcase.v1beta1.MessagingClient;
-
-public class AsyncDeleteBlurb {
-
- public static void main(String[] args) throws Exception {
- asyncDeleteBlurb();
- }
-
- public static void asyncDeleteBlurb() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- DeleteBlurbRequest request =
- DeleteBlurbRequest.newBuilder()
- .setName(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .build();
- ApiFuture future = messagingClient.deleteBlurbCallable().futureCall(request);
- // Do something.
- future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_DeleteBlurb_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurb.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurb.java
deleted file mode 100644
index abca7083fc..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurb.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_DeleteBlurb_sync]
-import com.google.protobuf.Empty;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.DeleteBlurbRequest;
-import com.google.showcase.v1beta1.MessagingClient;
-
-public class SyncDeleteBlurb {
-
- public static void main(String[] args) throws Exception {
- syncDeleteBlurb();
- }
-
- public static void syncDeleteBlurb() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- DeleteBlurbRequest request =
- DeleteBlurbRequest.newBuilder()
- .setName(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .build();
- messagingClient.deleteBlurb(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_DeleteBlurb_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbBlurbname.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbBlurbname.java
deleted file mode 100644
index b2618c1bcd..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbBlurbname.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_DeleteBlurb_Blurbname_sync]
-import com.google.protobuf.Empty;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.MessagingClient;
-
-public class SyncDeleteBlurbBlurbname {
-
- public static void main(String[] args) throws Exception {
- syncDeleteBlurbBlurbname();
- }
-
- public static void syncDeleteBlurbBlurbname() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- BlurbName name = BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]");
- messagingClient.deleteBlurb(name);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_DeleteBlurb_Blurbname_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbString.java
deleted file mode 100644
index b420f5e513..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteblurb/SyncDeleteBlurbString.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_DeleteBlurb_String_sync]
-import com.google.protobuf.Empty;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.MessagingClient;
-
-public class SyncDeleteBlurbString {
-
- public static void main(String[] args) throws Exception {
- syncDeleteBlurbString();
- }
-
- public static void syncDeleteBlurbString() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- String name =
- BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]").toString();
- messagingClient.deleteBlurb(name);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_DeleteBlurb_String_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/AsyncDeleteRoom.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/AsyncDeleteRoom.java
deleted file mode 100644
index 391dabd0f0..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/AsyncDeleteRoom.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_DeleteRoom_async]
-import com.google.api.core.ApiFuture;
-import com.google.protobuf.Empty;
-import com.google.showcase.v1beta1.DeleteRoomRequest;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.RoomName;
-
-public class AsyncDeleteRoom {
-
- public static void main(String[] args) throws Exception {
- asyncDeleteRoom();
- }
-
- public static void asyncDeleteRoom() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- DeleteRoomRequest request =
- DeleteRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build();
- ApiFuture future = messagingClient.deleteRoomCallable().futureCall(request);
- // Do something.
- future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_DeleteRoom_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoom.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoom.java
deleted file mode 100644
index a676edfb02..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoom.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_DeleteRoom_sync]
-import com.google.protobuf.Empty;
-import com.google.showcase.v1beta1.DeleteRoomRequest;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.RoomName;
-
-public class SyncDeleteRoom {
-
- public static void main(String[] args) throws Exception {
- syncDeleteRoom();
- }
-
- public static void syncDeleteRoom() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- DeleteRoomRequest request =
- DeleteRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build();
- messagingClient.deleteRoom(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_DeleteRoom_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomRoomname.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomRoomname.java
deleted file mode 100644
index 6eabdc2e25..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomRoomname.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_DeleteRoom_Roomname_sync]
-import com.google.protobuf.Empty;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.RoomName;
-
-public class SyncDeleteRoomRoomname {
-
- public static void main(String[] args) throws Exception {
- syncDeleteRoomRoomname();
- }
-
- public static void syncDeleteRoomRoomname() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- RoomName name = RoomName.of("[ROOM]");
- messagingClient.deleteRoom(name);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_DeleteRoom_Roomname_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomString.java
deleted file mode 100644
index f9f035ff58..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/deleteroom/SyncDeleteRoomString.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_DeleteRoom_String_sync]
-import com.google.protobuf.Empty;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.RoomName;
-
-public class SyncDeleteRoomString {
-
- public static void main(String[] args) throws Exception {
- syncDeleteRoomString();
- }
-
- public static void syncDeleteRoomString() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- String name = RoomName.of("[ROOM]").toString();
- messagingClient.deleteRoom(name);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_DeleteRoom_String_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/AsyncGetBlurb.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/AsyncGetBlurb.java
deleted file mode 100644
index b4df2dcca2..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/AsyncGetBlurb.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_GetBlurb_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.GetBlurbRequest;
-import com.google.showcase.v1beta1.MessagingClient;
-
-public class AsyncGetBlurb {
-
- public static void main(String[] args) throws Exception {
- asyncGetBlurb();
- }
-
- public static void asyncGetBlurb() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- GetBlurbRequest request =
- GetBlurbRequest.newBuilder()
- .setName(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .build();
- ApiFuture future = messagingClient.getBlurbCallable().futureCall(request);
- // Do something.
- Blurb response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_GetBlurb_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurb.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurb.java
deleted file mode 100644
index 65b2c3459c..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurb.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_GetBlurb_sync]
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.GetBlurbRequest;
-import com.google.showcase.v1beta1.MessagingClient;
-
-public class SyncGetBlurb {
-
- public static void main(String[] args) throws Exception {
- syncGetBlurb();
- }
-
- public static void syncGetBlurb() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- GetBlurbRequest request =
- GetBlurbRequest.newBuilder()
- .setName(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .build();
- Blurb response = messagingClient.getBlurb(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_GetBlurb_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbBlurbname.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbBlurbname.java
deleted file mode 100644
index 2e26146704..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbBlurbname.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_GetBlurb_Blurbname_sync]
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.MessagingClient;
-
-public class SyncGetBlurbBlurbname {
-
- public static void main(String[] args) throws Exception {
- syncGetBlurbBlurbname();
- }
-
- public static void syncGetBlurbBlurbname() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- BlurbName name = BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]");
- Blurb response = messagingClient.getBlurb(name);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_GetBlurb_Blurbname_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbString.java
deleted file mode 100644
index 524696e93e..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getblurb/SyncGetBlurbString.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_GetBlurb_String_sync]
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.MessagingClient;
-
-public class SyncGetBlurbString {
-
- public static void main(String[] args) throws Exception {
- syncGetBlurbString();
- }
-
- public static void syncGetBlurbString() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- String name =
- BlurbName.ofUserLegacyUserBlurbName("[USER]", "[LEGACY_USER]", "[BLURB]").toString();
- Blurb response = messagingClient.getBlurb(name);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_GetBlurb_String_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getiampolicy/AsyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getiampolicy/AsyncGetIamPolicy.java
deleted file mode 100644
index 61d49b5940..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getiampolicy/AsyncGetIamPolicy.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_GetIamPolicy_async]
-import com.google.api.core.ApiFuture;
-import com.google.iam.v1.GetIamPolicyRequest;
-import com.google.iam.v1.GetPolicyOptions;
-import com.google.iam.v1.Policy;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.MessagingClient;
-
-public class AsyncGetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- asyncGetIamPolicy();
- }
-
- public static void asyncGetIamPolicy() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- GetIamPolicyRequest request =
- GetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setOptions(GetPolicyOptions.newBuilder().build())
- .build();
- ApiFuture future = messagingClient.getIamPolicyCallable().futureCall(request);
- // Do something.
- Policy response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_GetIamPolicy_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getiampolicy/SyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getiampolicy/SyncGetIamPolicy.java
deleted file mode 100644
index 3eefc781e7..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getiampolicy/SyncGetIamPolicy.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_GetIamPolicy_sync]
-import com.google.iam.v1.GetIamPolicyRequest;
-import com.google.iam.v1.GetPolicyOptions;
-import com.google.iam.v1.Policy;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.MessagingClient;
-
-public class SyncGetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- syncGetIamPolicy();
- }
-
- public static void syncGetIamPolicy() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- GetIamPolicyRequest request =
- GetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setOptions(GetPolicyOptions.newBuilder().build())
- .build();
- Policy response = messagingClient.getIamPolicy(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_GetIamPolicy_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getlocation/AsyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getlocation/AsyncGetLocation.java
deleted file mode 100644
index 5025e00826..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getlocation/AsyncGetLocation.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_GetLocation_async]
-import com.google.api.core.ApiFuture;
-import com.google.cloud.location.GetLocationRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.MessagingClient;
-
-public class AsyncGetLocation {
-
- public static void main(String[] args) throws Exception {
- asyncGetLocation();
- }
-
- public static void asyncGetLocation() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
- ApiFuture future = messagingClient.getLocationCallable().futureCall(request);
- // Do something.
- Location response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_GetLocation_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getlocation/SyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getlocation/SyncGetLocation.java
deleted file mode 100644
index e279d55f64..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getlocation/SyncGetLocation.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_GetLocation_sync]
-import com.google.cloud.location.GetLocationRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.MessagingClient;
-
-public class SyncGetLocation {
-
- public static void main(String[] args) throws Exception {
- syncGetLocation();
- }
-
- public static void syncGetLocation() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
- Location response = messagingClient.getLocation(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_GetLocation_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/AsyncGetRoom.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/AsyncGetRoom.java
deleted file mode 100644
index 89216c2239..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/AsyncGetRoom.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_GetRoom_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.GetRoomRequest;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.Room;
-import com.google.showcase.v1beta1.RoomName;
-
-public class AsyncGetRoom {
-
- public static void main(String[] args) throws Exception {
- asyncGetRoom();
- }
-
- public static void asyncGetRoom() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- GetRoomRequest request =
- GetRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build();
- ApiFuture future = messagingClient.getRoomCallable().futureCall(request);
- // Do something.
- Room response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_GetRoom_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoom.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoom.java
deleted file mode 100644
index 274396223d..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoom.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_GetRoom_sync]
-import com.google.showcase.v1beta1.GetRoomRequest;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.Room;
-import com.google.showcase.v1beta1.RoomName;
-
-public class SyncGetRoom {
-
- public static void main(String[] args) throws Exception {
- syncGetRoom();
- }
-
- public static void syncGetRoom() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- GetRoomRequest request =
- GetRoomRequest.newBuilder().setName(RoomName.of("[ROOM]").toString()).build();
- Room response = messagingClient.getRoom(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_GetRoom_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomRoomname.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomRoomname.java
deleted file mode 100644
index 1b00a72e3d..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomRoomname.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_GetRoom_Roomname_sync]
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.Room;
-import com.google.showcase.v1beta1.RoomName;
-
-public class SyncGetRoomRoomname {
-
- public static void main(String[] args) throws Exception {
- syncGetRoomRoomname();
- }
-
- public static void syncGetRoomRoomname() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- RoomName name = RoomName.of("[ROOM]");
- Room response = messagingClient.getRoom(name);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_GetRoom_Roomname_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomString.java
deleted file mode 100644
index adb4cdaa3a..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/getroom/SyncGetRoomString.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_GetRoom_String_sync]
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.Room;
-import com.google.showcase.v1beta1.RoomName;
-
-public class SyncGetRoomString {
-
- public static void main(String[] args) throws Exception {
- syncGetRoomString();
- }
-
- public static void syncGetRoomString() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- String name = RoomName.of("[ROOM]").toString();
- Room response = messagingClient.getRoom(name);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_GetRoom_String_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbs.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbs.java
deleted file mode 100644
index eb9bf91d5e..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbs.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_ListBlurbs_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.ListBlurbsRequest;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.ProfileName;
-
-public class AsyncListBlurbs {
-
- public static void main(String[] args) throws Exception {
- asyncListBlurbs();
- }
-
- public static void asyncListBlurbs() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- ListBlurbsRequest request =
- ListBlurbsRequest.newBuilder()
- .setParent(ProfileName.of("[USER]").toString())
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- ApiFuture future = messagingClient.listBlurbsPagedCallable().futureCall(request);
- // Do something.
- for (Blurb element : future.get().iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_ListBlurbs_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbsPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbsPaged.java
deleted file mode 100644
index 7a708d45a8..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/AsyncListBlurbsPaged.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_ListBlurbs_Paged_async]
-import com.google.common.base.Strings;
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.ListBlurbsRequest;
-import com.google.showcase.v1beta1.ListBlurbsResponse;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.ProfileName;
-
-public class AsyncListBlurbsPaged {
-
- public static void main(String[] args) throws Exception {
- asyncListBlurbsPaged();
- }
-
- public static void asyncListBlurbsPaged() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- ListBlurbsRequest request =
- ListBlurbsRequest.newBuilder()
- .setParent(ProfileName.of("[USER]").toString())
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- while (true) {
- ListBlurbsResponse response = messagingClient.listBlurbsCallable().call(request);
- for (Blurb element : response.getBlurbsList()) {
- // doThingsWith(element);
- }
- String nextPageToken = response.getNextPageToken();
- if (!Strings.isNullOrEmpty(nextPageToken)) {
- request = request.toBuilder().setPageToken(nextPageToken).build();
- } else {
- break;
- }
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_ListBlurbs_Paged_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbs.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbs.java
deleted file mode 100644
index af5c7aa297..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbs.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_ListBlurbs_sync]
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.ListBlurbsRequest;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.ProfileName;
-
-public class SyncListBlurbs {
-
- public static void main(String[] args) throws Exception {
- syncListBlurbs();
- }
-
- public static void syncListBlurbs() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- ListBlurbsRequest request =
- ListBlurbsRequest.newBuilder()
- .setParent(ProfileName.of("[USER]").toString())
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- for (Blurb element : messagingClient.listBlurbs(request).iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_ListBlurbs_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsProfilename.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsProfilename.java
deleted file mode 100644
index 3b002707f9..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsProfilename.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_ListBlurbs_Profilename_sync]
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.ProfileName;
-
-public class SyncListBlurbsProfilename {
-
- public static void main(String[] args) throws Exception {
- syncListBlurbsProfilename();
- }
-
- public static void syncListBlurbsProfilename() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- ProfileName parent = ProfileName.of("[USER]");
- for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_ListBlurbs_Profilename_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsRoomname.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsRoomname.java
deleted file mode 100644
index 3718c13b4d..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsRoomname.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_ListBlurbs_Roomname_sync]
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.RoomName;
-
-public class SyncListBlurbsRoomname {
-
- public static void main(String[] args) throws Exception {
- syncListBlurbsRoomname();
- }
-
- public static void syncListBlurbsRoomname() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- RoomName parent = RoomName.of("[ROOM]");
- for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_ListBlurbs_Roomname_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsString.java
deleted file mode 100644
index a793c600a7..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listblurbs/SyncListBlurbsString.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_ListBlurbs_String_sync]
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.ProfileName;
-
-public class SyncListBlurbsString {
-
- public static void main(String[] args) throws Exception {
- syncListBlurbsString();
- }
-
- public static void syncListBlurbsString() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- String parent = ProfileName.of("[USER]").toString();
- for (Blurb element : messagingClient.listBlurbs(parent).iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_ListBlurbs_String_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listlocations/AsyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listlocations/AsyncListLocations.java
deleted file mode 100644
index d6bd11466d..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listlocations/AsyncListLocations.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_ListLocations_async]
-import com.google.api.core.ApiFuture;
-import com.google.cloud.location.ListLocationsRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.MessagingClient;
-
-public class AsyncListLocations {
-
- public static void main(String[] args) throws Exception {
- asyncListLocations();
- }
-
- public static void asyncListLocations() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- ListLocationsRequest request =
- ListLocationsRequest.newBuilder()
- .setName("name3373707")
- .setFilter("filter-1274492040")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- ApiFuture future = messagingClient.listLocationsPagedCallable().futureCall(request);
- // Do something.
- for (Location element : future.get().iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_ListLocations_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listlocations/AsyncListLocationsPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listlocations/AsyncListLocationsPaged.java
deleted file mode 100644
index a6ee312dcd..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listlocations/AsyncListLocationsPaged.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_ListLocations_Paged_async]
-import com.google.cloud.location.ListLocationsRequest;
-import com.google.cloud.location.ListLocationsResponse;
-import com.google.cloud.location.Location;
-import com.google.common.base.Strings;
-import com.google.showcase.v1beta1.MessagingClient;
-
-public class AsyncListLocationsPaged {
-
- public static void main(String[] args) throws Exception {
- asyncListLocationsPaged();
- }
-
- public static void asyncListLocationsPaged() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- ListLocationsRequest request =
- ListLocationsRequest.newBuilder()
- .setName("name3373707")
- .setFilter("filter-1274492040")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- while (true) {
- ListLocationsResponse response = messagingClient.listLocationsCallable().call(request);
- for (Location element : response.getLocationsList()) {
- // doThingsWith(element);
- }
- String nextPageToken = response.getNextPageToken();
- if (!Strings.isNullOrEmpty(nextPageToken)) {
- request = request.toBuilder().setPageToken(nextPageToken).build();
- } else {
- break;
- }
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_ListLocations_Paged_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listlocations/SyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listlocations/SyncListLocations.java
deleted file mode 100644
index 98e590c396..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listlocations/SyncListLocations.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_ListLocations_sync]
-import com.google.cloud.location.ListLocationsRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.MessagingClient;
-
-public class SyncListLocations {
-
- public static void main(String[] args) throws Exception {
- syncListLocations();
- }
-
- public static void syncListLocations() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- ListLocationsRequest request =
- ListLocationsRequest.newBuilder()
- .setName("name3373707")
- .setFilter("filter-1274492040")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- for (Location element : messagingClient.listLocations(request).iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_ListLocations_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRooms.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRooms.java
deleted file mode 100644
index 05800c454c..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRooms.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_ListRooms_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.ListRoomsRequest;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.Room;
-
-public class AsyncListRooms {
-
- public static void main(String[] args) throws Exception {
- asyncListRooms();
- }
-
- public static void asyncListRooms() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- ListRoomsRequest request =
- ListRoomsRequest.newBuilder()
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- ApiFuture future = messagingClient.listRoomsPagedCallable().futureCall(request);
- // Do something.
- for (Room element : future.get().iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_ListRooms_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRoomsPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRoomsPaged.java
deleted file mode 100644
index f144714bfb..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/AsyncListRoomsPaged.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_ListRooms_Paged_async]
-import com.google.common.base.Strings;
-import com.google.showcase.v1beta1.ListRoomsRequest;
-import com.google.showcase.v1beta1.ListRoomsResponse;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.Room;
-
-public class AsyncListRoomsPaged {
-
- public static void main(String[] args) throws Exception {
- asyncListRoomsPaged();
- }
-
- public static void asyncListRoomsPaged() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- ListRoomsRequest request =
- ListRoomsRequest.newBuilder()
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- while (true) {
- ListRoomsResponse response = messagingClient.listRoomsCallable().call(request);
- for (Room element : response.getRoomsList()) {
- // doThingsWith(element);
- }
- String nextPageToken = response.getNextPageToken();
- if (!Strings.isNullOrEmpty(nextPageToken)) {
- request = request.toBuilder().setPageToken(nextPageToken).build();
- } else {
- break;
- }
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_ListRooms_Paged_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/SyncListRooms.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/SyncListRooms.java
deleted file mode 100644
index 8e7809cf1c..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/listrooms/SyncListRooms.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_ListRooms_sync]
-import com.google.showcase.v1beta1.ListRoomsRequest;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.Room;
-
-public class SyncListRooms {
-
- public static void main(String[] args) throws Exception {
- syncListRooms();
- }
-
- public static void syncListRooms() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- ListRoomsRequest request =
- ListRoomsRequest.newBuilder()
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- for (Room element : messagingClient.listRooms(request).iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_ListRooms_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbs.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbs.java
deleted file mode 100644
index d48f0e720e..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbs.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_SearchBlurbs_async]
-import com.google.api.core.ApiFuture;
-import com.google.longrunning.Operation;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.ProfileName;
-import com.google.showcase.v1beta1.SearchBlurbsRequest;
-
-public class AsyncSearchBlurbs {
-
- public static void main(String[] args) throws Exception {
- asyncSearchBlurbs();
- }
-
- public static void asyncSearchBlurbs() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- SearchBlurbsRequest request =
- SearchBlurbsRequest.newBuilder()
- .setQuery("query107944136")
- .setParent(ProfileName.of("[USER]").toString())
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- ApiFuture future = messagingClient.searchBlurbsCallable().futureCall(request);
- // Do something.
- Operation response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_SearchBlurbs_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbsLRO.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbsLRO.java
deleted file mode 100644
index 1970c9cad8..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/AsyncSearchBlurbsLRO.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_SearchBlurbs_LRO_async]
-import com.google.api.gax.longrunning.OperationFuture;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.ProfileName;
-import com.google.showcase.v1beta1.SearchBlurbsMetadata;
-import com.google.showcase.v1beta1.SearchBlurbsRequest;
-import com.google.showcase.v1beta1.SearchBlurbsResponse;
-
-public class AsyncSearchBlurbsLRO {
-
- public static void main(String[] args) throws Exception {
- asyncSearchBlurbsLRO();
- }
-
- public static void asyncSearchBlurbsLRO() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- SearchBlurbsRequest request =
- SearchBlurbsRequest.newBuilder()
- .setQuery("query107944136")
- .setParent(ProfileName.of("[USER]").toString())
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- OperationFuture future =
- messagingClient.searchBlurbsOperationCallable().futureCall(request);
- // Do something.
- SearchBlurbsResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_SearchBlurbs_LRO_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbs.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbs.java
deleted file mode 100644
index 9965f84187..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbs.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_SearchBlurbs_sync]
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.ProfileName;
-import com.google.showcase.v1beta1.SearchBlurbsRequest;
-import com.google.showcase.v1beta1.SearchBlurbsResponse;
-
-public class SyncSearchBlurbs {
-
- public static void main(String[] args) throws Exception {
- syncSearchBlurbs();
- }
-
- public static void syncSearchBlurbs() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- SearchBlurbsRequest request =
- SearchBlurbsRequest.newBuilder()
- .setQuery("query107944136")
- .setParent(ProfileName.of("[USER]").toString())
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- SearchBlurbsResponse response = messagingClient.searchBlurbsAsync(request).get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_SearchBlurbs_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsProfilenameString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsProfilenameString.java
deleted file mode 100644
index 50f9bff74d..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsProfilenameString.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_SearchBlurbs_ProfilenameString_sync]
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.ProfileName;
-import com.google.showcase.v1beta1.SearchBlurbsResponse;
-
-public class SyncSearchBlurbsProfilenameString {
-
- public static void main(String[] args) throws Exception {
- syncSearchBlurbsProfilenameString();
- }
-
- public static void syncSearchBlurbsProfilenameString() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- ProfileName parent = ProfileName.of("[USER]");
- String query = "query107944136";
- SearchBlurbsResponse response = messagingClient.searchBlurbsAsync(parent, query).get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_SearchBlurbs_ProfilenameString_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsRoomnameString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsRoomnameString.java
deleted file mode 100644
index 2d3b61ddef..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsRoomnameString.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_SearchBlurbs_RoomnameString_sync]
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.RoomName;
-import com.google.showcase.v1beta1.SearchBlurbsResponse;
-
-public class SyncSearchBlurbsRoomnameString {
-
- public static void main(String[] args) throws Exception {
- syncSearchBlurbsRoomnameString();
- }
-
- public static void syncSearchBlurbsRoomnameString() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- RoomName parent = RoomName.of("[ROOM]");
- String query = "query107944136";
- SearchBlurbsResponse response = messagingClient.searchBlurbsAsync(parent, query).get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_SearchBlurbs_RoomnameString_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsStringString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsStringString.java
deleted file mode 100644
index 4cd8877de4..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/searchblurbs/SyncSearchBlurbsStringString.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_SearchBlurbs_StringString_sync]
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.ProfileName;
-import com.google.showcase.v1beta1.SearchBlurbsResponse;
-
-public class SyncSearchBlurbsStringString {
-
- public static void main(String[] args) throws Exception {
- syncSearchBlurbsStringString();
- }
-
- public static void syncSearchBlurbsStringString() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- String parent = ProfileName.of("[USER]").toString();
- String query = "query107944136";
- SearchBlurbsResponse response = messagingClient.searchBlurbsAsync(parent, query).get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_SearchBlurbs_StringString_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/sendblurbs/AsyncSendBlurbs.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/sendblurbs/AsyncSendBlurbs.java
deleted file mode 100644
index 527a49f459..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/sendblurbs/AsyncSendBlurbs.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_SendBlurbs_async]
-import com.google.api.gax.rpc.ApiStreamObserver;
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.CreateBlurbRequest;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.ProfileName;
-import com.google.showcase.v1beta1.SendBlurbsResponse;
-
-public class AsyncSendBlurbs {
-
- public static void main(String[] args) throws Exception {
- asyncSendBlurbs();
- }
-
- public static void asyncSendBlurbs() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- ApiStreamObserver responseObserver =
- new ApiStreamObserver() {
- @Override
- public void onNext(SendBlurbsResponse response) {
- // Do something when a response is received.
- }
-
- @Override
- public void onError(Throwable t) {
- // Add error-handling
- }
-
- @Override
- public void onCompleted() {
- // Do something when complete.
- }
- };
- ApiStreamObserver requestObserver =
- messagingClient.sendBlurbs().clientStreamingCall(responseObserver);
- CreateBlurbRequest request =
- CreateBlurbRequest.newBuilder()
- .setParent(ProfileName.of("[USER]").toString())
- .setBlurb(Blurb.newBuilder().build())
- .build();
- requestObserver.onNext(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_SendBlurbs_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/setiampolicy/AsyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/setiampolicy/AsyncSetIamPolicy.java
deleted file mode 100644
index dc07421780..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/setiampolicy/AsyncSetIamPolicy.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_SetIamPolicy_async]
-import com.google.api.core.ApiFuture;
-import com.google.iam.v1.Policy;
-import com.google.iam.v1.SetIamPolicyRequest;
-import com.google.protobuf.FieldMask;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.MessagingClient;
-
-public class AsyncSetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- asyncSetIamPolicy();
- }
-
- public static void asyncSetIamPolicy() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- SetIamPolicyRequest request =
- SetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setPolicy(Policy.newBuilder().build())
- .setUpdateMask(FieldMask.newBuilder().build())
- .build();
- ApiFuture future = messagingClient.setIamPolicyCallable().futureCall(request);
- // Do something.
- Policy response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_SetIamPolicy_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/setiampolicy/SyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/setiampolicy/SyncSetIamPolicy.java
deleted file mode 100644
index 62aa81909f..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/setiampolicy/SyncSetIamPolicy.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_SetIamPolicy_sync]
-import com.google.iam.v1.Policy;
-import com.google.iam.v1.SetIamPolicyRequest;
-import com.google.protobuf.FieldMask;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.MessagingClient;
-
-public class SyncSetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- syncSetIamPolicy();
- }
-
- public static void syncSetIamPolicy() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- SetIamPolicyRequest request =
- SetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setPolicy(Policy.newBuilder().build())
- .setUpdateMask(FieldMask.newBuilder().build())
- .build();
- Policy response = messagingClient.setIamPolicy(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_SetIamPolicy_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/streamblurbs/AsyncStreamBlurbs.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/streamblurbs/AsyncStreamBlurbs.java
deleted file mode 100644
index 92a260bfc1..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/streamblurbs/AsyncStreamBlurbs.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_StreamBlurbs_async]
-import com.google.api.gax.rpc.ServerStream;
-import com.google.protobuf.Timestamp;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.ProfileName;
-import com.google.showcase.v1beta1.StreamBlurbsRequest;
-import com.google.showcase.v1beta1.StreamBlurbsResponse;
-
-public class AsyncStreamBlurbs {
-
- public static void main(String[] args) throws Exception {
- asyncStreamBlurbs();
- }
-
- public static void asyncStreamBlurbs() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- StreamBlurbsRequest request =
- StreamBlurbsRequest.newBuilder()
- .setName(ProfileName.of("[USER]").toString())
- .setExpireTime(Timestamp.newBuilder().build())
- .build();
- ServerStream stream =
- messagingClient.streamBlurbsCallable().call(request);
- for (StreamBlurbsResponse response : stream) {
- // Do something when a response is received.
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_StreamBlurbs_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/testiampermissions/AsyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/testiampermissions/AsyncTestIamPermissions.java
deleted file mode 100644
index 3a1f51abe6..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/testiampermissions/AsyncTestIamPermissions.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_TestIamPermissions_async]
-import com.google.api.core.ApiFuture;
-import com.google.iam.v1.TestIamPermissionsRequest;
-import com.google.iam.v1.TestIamPermissionsResponse;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.MessagingClient;
-import java.util.ArrayList;
-
-public class AsyncTestIamPermissions {
-
- public static void main(String[] args) throws Exception {
- asyncTestIamPermissions();
- }
-
- public static void asyncTestIamPermissions() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- TestIamPermissionsRequest request =
- TestIamPermissionsRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .addAllPermissions(new ArrayList())
- .build();
- ApiFuture future =
- messagingClient.testIamPermissionsCallable().futureCall(request);
- // Do something.
- TestIamPermissionsResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_TestIamPermissions_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/testiampermissions/SyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/testiampermissions/SyncTestIamPermissions.java
deleted file mode 100644
index e833c99f94..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/testiampermissions/SyncTestIamPermissions.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_TestIamPermissions_sync]
-import com.google.iam.v1.TestIamPermissionsRequest;
-import com.google.iam.v1.TestIamPermissionsResponse;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.MessagingClient;
-import java.util.ArrayList;
-
-public class SyncTestIamPermissions {
-
- public static void main(String[] args) throws Exception {
- syncTestIamPermissions();
- }
-
- public static void syncTestIamPermissions() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- TestIamPermissionsRequest request =
- TestIamPermissionsRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .addAllPermissions(new ArrayList())
- .build();
- TestIamPermissionsResponse response = messagingClient.testIamPermissions(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_TestIamPermissions_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateblurb/AsyncUpdateBlurb.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateblurb/AsyncUpdateBlurb.java
deleted file mode 100644
index d6cdbf6f95..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateblurb/AsyncUpdateBlurb.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_UpdateBlurb_async]
-import com.google.api.core.ApiFuture;
-import com.google.protobuf.FieldMask;
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.UpdateBlurbRequest;
-
-public class AsyncUpdateBlurb {
-
- public static void main(String[] args) throws Exception {
- asyncUpdateBlurb();
- }
-
- public static void asyncUpdateBlurb() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- UpdateBlurbRequest request =
- UpdateBlurbRequest.newBuilder()
- .setBlurb(Blurb.newBuilder().build())
- .setUpdateMask(FieldMask.newBuilder().build())
- .build();
- ApiFuture future = messagingClient.updateBlurbCallable().futureCall(request);
- // Do something.
- Blurb response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_UpdateBlurb_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateblurb/SyncUpdateBlurb.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateblurb/SyncUpdateBlurb.java
deleted file mode 100644
index 0faa4728df..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateblurb/SyncUpdateBlurb.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_UpdateBlurb_sync]
-import com.google.protobuf.FieldMask;
-import com.google.showcase.v1beta1.Blurb;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.UpdateBlurbRequest;
-
-public class SyncUpdateBlurb {
-
- public static void main(String[] args) throws Exception {
- syncUpdateBlurb();
- }
-
- public static void syncUpdateBlurb() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- UpdateBlurbRequest request =
- UpdateBlurbRequest.newBuilder()
- .setBlurb(Blurb.newBuilder().build())
- .setUpdateMask(FieldMask.newBuilder().build())
- .build();
- Blurb response = messagingClient.updateBlurb(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_UpdateBlurb_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateroom/AsyncUpdateRoom.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateroom/AsyncUpdateRoom.java
deleted file mode 100644
index 8dc1e0677b..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateroom/AsyncUpdateRoom.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_UpdateRoom_async]
-import com.google.api.core.ApiFuture;
-import com.google.protobuf.FieldMask;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.Room;
-import com.google.showcase.v1beta1.UpdateRoomRequest;
-
-public class AsyncUpdateRoom {
-
- public static void main(String[] args) throws Exception {
- asyncUpdateRoom();
- }
-
- public static void asyncUpdateRoom() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- UpdateRoomRequest request =
- UpdateRoomRequest.newBuilder()
- .setRoom(Room.newBuilder().build())
- .setUpdateMask(FieldMask.newBuilder().build())
- .build();
- ApiFuture future = messagingClient.updateRoomCallable().futureCall(request);
- // Do something.
- Room response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_UpdateRoom_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateroom/SyncUpdateRoom.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateroom/SyncUpdateRoom.java
deleted file mode 100644
index 74e9d62b74..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messaging/updateroom/SyncUpdateRoom.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Messaging_UpdateRoom_sync]
-import com.google.protobuf.FieldMask;
-import com.google.showcase.v1beta1.MessagingClient;
-import com.google.showcase.v1beta1.Room;
-import com.google.showcase.v1beta1.UpdateRoomRequest;
-
-public class SyncUpdateRoom {
-
- public static void main(String[] args) throws Exception {
- syncUpdateRoom();
- }
-
- public static void syncUpdateRoom() 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 (MessagingClient messagingClient = MessagingClient.create()) {
- UpdateRoomRequest request =
- UpdateRoomRequest.newBuilder()
- .setRoom(Room.newBuilder().build())
- .setUpdateMask(FieldMask.newBuilder().build())
- .build();
- Room response = messagingClient.updateRoom(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Messaging_UpdateRoom_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messagingsettings/createroom/SyncCreateRoom.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messagingsettings/createroom/SyncCreateRoom.java
deleted file mode 100644
index 0fa1ec470d..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/messagingsettings/createroom/SyncCreateRoom.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_MessagingSettings_CreateRoom_sync]
-import com.google.showcase.v1beta1.MessagingSettings;
-import java.time.Duration;
-
-public class SyncCreateRoom {
-
- public static void main(String[] args) throws Exception {
- syncCreateRoom();
- }
-
- public static void syncCreateRoom() 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
- MessagingSettings.Builder messagingSettingsBuilder = MessagingSettings.newBuilder();
- messagingSettingsBuilder
- .createRoomSettings()
- .setRetrySettings(
- messagingSettingsBuilder
- .createRoomSettings()
- .getRetrySettings()
- .toBuilder()
- .setTotalTimeout(Duration.ofSeconds(30))
- .build());
- MessagingSettings messagingSettings = messagingSettingsBuilder.build();
- }
-}
-// [END localhost7469_v1beta1_generated_MessagingSettings_CreateRoom_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/AsyncAttemptSequence.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/AsyncAttemptSequence.java
deleted file mode 100644
index 7e423ac40e..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/AsyncAttemptSequence.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_AttemptSequence_async]
-import com.google.api.core.ApiFuture;
-import com.google.protobuf.Empty;
-import com.google.showcase.v1beta1.AttemptSequenceRequest;
-import com.google.showcase.v1beta1.SequenceName;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-
-public class AsyncAttemptSequence {
-
- public static void main(String[] args) throws Exception {
- asyncAttemptSequence();
- }
-
- public static void asyncAttemptSequence() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- AttemptSequenceRequest request =
- AttemptSequenceRequest.newBuilder()
- .setName(SequenceName.of("[SEQUENCE]").toString())
- .build();
- ApiFuture future = sequenceServiceClient.attemptSequenceCallable().futureCall(request);
- // Do something.
- future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_AttemptSequence_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequence.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequence.java
deleted file mode 100644
index 11790633b8..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequence.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_AttemptSequence_sync]
-import com.google.protobuf.Empty;
-import com.google.showcase.v1beta1.AttemptSequenceRequest;
-import com.google.showcase.v1beta1.SequenceName;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-
-public class SyncAttemptSequence {
-
- public static void main(String[] args) throws Exception {
- syncAttemptSequence();
- }
-
- public static void syncAttemptSequence() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- AttemptSequenceRequest request =
- AttemptSequenceRequest.newBuilder()
- .setName(SequenceName.of("[SEQUENCE]").toString())
- .build();
- sequenceServiceClient.attemptSequence(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_AttemptSequence_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceSequencename.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceSequencename.java
deleted file mode 100644
index e8f3148806..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceSequencename.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_AttemptSequence_Sequencename_sync]
-import com.google.protobuf.Empty;
-import com.google.showcase.v1beta1.SequenceName;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-
-public class SyncAttemptSequenceSequencename {
-
- public static void main(String[] args) throws Exception {
- syncAttemptSequenceSequencename();
- }
-
- public static void syncAttemptSequenceSequencename() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- SequenceName name = SequenceName.of("[SEQUENCE]");
- sequenceServiceClient.attemptSequence(name);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_AttemptSequence_Sequencename_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceString.java
deleted file mode 100644
index f5ef70be3e..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptsequence/SyncAttemptSequenceString.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_AttemptSequence_String_sync]
-import com.google.protobuf.Empty;
-import com.google.showcase.v1beta1.SequenceName;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-
-public class SyncAttemptSequenceString {
-
- public static void main(String[] args) throws Exception {
- syncAttemptSequenceString();
- }
-
- public static void syncAttemptSequenceString() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- String name = SequenceName.of("[SEQUENCE]").toString();
- sequenceServiceClient.attemptSequence(name);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_AttemptSequence_String_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptstreamingsequence/AsyncAttemptStreamingSequence.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptstreamingsequence/AsyncAttemptStreamingSequence.java
deleted file mode 100644
index 9da7ad7bf4..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/attemptstreamingsequence/AsyncAttemptStreamingSequence.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_AttemptStreamingSequence_async]
-import com.google.api.gax.rpc.ServerStream;
-import com.google.showcase.v1beta1.AttemptStreamingSequenceRequest;
-import com.google.showcase.v1beta1.AttemptStreamingSequenceResponse;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-import com.google.showcase.v1beta1.StreamingSequenceName;
-
-public class AsyncAttemptStreamingSequence {
-
- public static void main(String[] args) throws Exception {
- asyncAttemptStreamingSequence();
- }
-
- public static void asyncAttemptStreamingSequence() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- AttemptStreamingSequenceRequest request =
- AttemptStreamingSequenceRequest.newBuilder()
- .setName(StreamingSequenceName.of("[STREAMING_SEQUENCE]").toString())
- .build();
- ServerStream stream =
- sequenceServiceClient.attemptStreamingSequenceCallable().call(request);
- for (AttemptStreamingSequenceResponse response : stream) {
- // Do something when a response is received.
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_AttemptStreamingSequence_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider.java
deleted file mode 100644
index 0470b99fd2..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_Create_SetCredentialsProvider_sync]
-import com.google.api.gax.core.FixedCredentialsProvider;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-import com.google.showcase.v1beta1.SequenceServiceSettings;
-import com.google.showcase.v1beta1.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
- SequenceServiceSettings sequenceServiceSettings =
- SequenceServiceSettings.newBuilder()
- .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- .build();
- SequenceServiceClient sequenceServiceClient =
- SequenceServiceClient.create(sequenceServiceSettings);
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_Create_SetCredentialsProvider_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider1.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider1.java
deleted file mode 100644
index 1b178a90ce..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetCredentialsProvider1.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_Create_SetCredentialsProvider1_sync]
-import com.google.showcase.v1beta1.SequenceServiceClient;
-import com.google.showcase.v1beta1.SequenceServiceSettings;
-
-public class SyncCreateSetCredentialsProvider1 {
-
- public static void main(String[] args) throws Exception {
- syncCreateSetCredentialsProvider1();
- }
-
- public static void syncCreateSetCredentialsProvider1() 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
- SequenceServiceSettings sequenceServiceSettings =
- SequenceServiceSettings.newHttpJsonBuilder().build();
- SequenceServiceClient sequenceServiceClient =
- SequenceServiceClient.create(sequenceServiceSettings);
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_Create_SetCredentialsProvider1_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetEndpoint.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetEndpoint.java
deleted file mode 100644
index 7a8a118e3d..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/create/SyncCreateSetEndpoint.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_Create_SetEndpoint_sync]
-import com.google.showcase.v1beta1.SequenceServiceClient;
-import com.google.showcase.v1beta1.SequenceServiceSettings;
-import com.google.showcase.v1beta1.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
- SequenceServiceSettings sequenceServiceSettings =
- SequenceServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- SequenceServiceClient sequenceServiceClient =
- SequenceServiceClient.create(sequenceServiceSettings);
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_Create_SetEndpoint_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/AsyncCreateSequence.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/AsyncCreateSequence.java
deleted file mode 100644
index cfcf804304..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/AsyncCreateSequence.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_CreateSequence_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.CreateSequenceRequest;
-import com.google.showcase.v1beta1.Sequence;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-
-public class AsyncCreateSequence {
-
- public static void main(String[] args) throws Exception {
- asyncCreateSequence();
- }
-
- public static void asyncCreateSequence() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- CreateSequenceRequest request =
- CreateSequenceRequest.newBuilder().setSequence(Sequence.newBuilder().build()).build();
- ApiFuture future =
- sequenceServiceClient.createSequenceCallable().futureCall(request);
- // Do something.
- Sequence response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_CreateSequence_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequence.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequence.java
deleted file mode 100644
index 0e703cb871..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequence.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_CreateSequence_sync]
-import com.google.showcase.v1beta1.CreateSequenceRequest;
-import com.google.showcase.v1beta1.Sequence;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-
-public class SyncCreateSequence {
-
- public static void main(String[] args) throws Exception {
- syncCreateSequence();
- }
-
- public static void syncCreateSequence() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- CreateSequenceRequest request =
- CreateSequenceRequest.newBuilder().setSequence(Sequence.newBuilder().build()).build();
- Sequence response = sequenceServiceClient.createSequence(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_CreateSequence_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequenceSequence.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequenceSequence.java
deleted file mode 100644
index fb63646fd0..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createsequence/SyncCreateSequenceSequence.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_CreateSequence_Sequence_sync]
-import com.google.showcase.v1beta1.Sequence;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-
-public class SyncCreateSequenceSequence {
-
- public static void main(String[] args) throws Exception {
- syncCreateSequenceSequence();
- }
-
- public static void syncCreateSequenceSequence() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- Sequence sequence = Sequence.newBuilder().build();
- Sequence response = sequenceServiceClient.createSequence(sequence);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_CreateSequence_Sequence_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/AsyncCreateStreamingSequence.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/AsyncCreateStreamingSequence.java
deleted file mode 100644
index 63d07adccf..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/AsyncCreateStreamingSequence.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.CreateStreamingSequenceRequest;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-import com.google.showcase.v1beta1.StreamingSequence;
-
-public class AsyncCreateStreamingSequence {
-
- public static void main(String[] args) throws Exception {
- asyncCreateStreamingSequence();
- }
-
- public static void asyncCreateStreamingSequence() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- CreateStreamingSequenceRequest request =
- CreateStreamingSequenceRequest.newBuilder()
- .setStreamingSequence(StreamingSequence.newBuilder().build())
- .build();
- ApiFuture future =
- sequenceServiceClient.createStreamingSequenceCallable().futureCall(request);
- // Do something.
- StreamingSequence response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequence.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequence.java
deleted file mode 100644
index c11c94d307..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequence.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_sync]
-import com.google.showcase.v1beta1.CreateStreamingSequenceRequest;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-import com.google.showcase.v1beta1.StreamingSequence;
-
-public class SyncCreateStreamingSequence {
-
- public static void main(String[] args) throws Exception {
- syncCreateStreamingSequence();
- }
-
- public static void syncCreateStreamingSequence() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- CreateStreamingSequenceRequest request =
- CreateStreamingSequenceRequest.newBuilder()
- .setStreamingSequence(StreamingSequence.newBuilder().build())
- .build();
- StreamingSequence response = sequenceServiceClient.createStreamingSequence(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequenceStreamingsequence.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequenceStreamingsequence.java
deleted file mode 100644
index 67d4fd7591..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/createstreamingsequence/SyncCreateStreamingSequenceStreamingsequence.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_Streamingsequence_sync]
-import com.google.showcase.v1beta1.SequenceServiceClient;
-import com.google.showcase.v1beta1.StreamingSequence;
-
-public class SyncCreateStreamingSequenceStreamingsequence {
-
- public static void main(String[] args) throws Exception {
- syncCreateStreamingSequenceStreamingsequence();
- }
-
- public static void syncCreateStreamingSequenceStreamingsequence() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- StreamingSequence streamingSequence = StreamingSequence.newBuilder().build();
- StreamingSequence response = sequenceServiceClient.createStreamingSequence(streamingSequence);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_CreateStreamingSequence_Streamingsequence_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getiampolicy/AsyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getiampolicy/AsyncGetIamPolicy.java
deleted file mode 100644
index e94c17e76e..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getiampolicy/AsyncGetIamPolicy.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_GetIamPolicy_async]
-import com.google.api.core.ApiFuture;
-import com.google.iam.v1.GetIamPolicyRequest;
-import com.google.iam.v1.GetPolicyOptions;
-import com.google.iam.v1.Policy;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-
-public class AsyncGetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- asyncGetIamPolicy();
- }
-
- public static void asyncGetIamPolicy() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- GetIamPolicyRequest request =
- GetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setOptions(GetPolicyOptions.newBuilder().build())
- .build();
- ApiFuture future = sequenceServiceClient.getIamPolicyCallable().futureCall(request);
- // Do something.
- Policy response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_GetIamPolicy_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getiampolicy/SyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getiampolicy/SyncGetIamPolicy.java
deleted file mode 100644
index 4c0dbd14e4..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getiampolicy/SyncGetIamPolicy.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_GetIamPolicy_sync]
-import com.google.iam.v1.GetIamPolicyRequest;
-import com.google.iam.v1.GetPolicyOptions;
-import com.google.iam.v1.Policy;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-
-public class SyncGetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- syncGetIamPolicy();
- }
-
- public static void syncGetIamPolicy() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- GetIamPolicyRequest request =
- GetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setOptions(GetPolicyOptions.newBuilder().build())
- .build();
- Policy response = sequenceServiceClient.getIamPolicy(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_GetIamPolicy_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getlocation/AsyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getlocation/AsyncGetLocation.java
deleted file mode 100644
index 7004221de6..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getlocation/AsyncGetLocation.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_GetLocation_async]
-import com.google.api.core.ApiFuture;
-import com.google.cloud.location.GetLocationRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-
-public class AsyncGetLocation {
-
- public static void main(String[] args) throws Exception {
- asyncGetLocation();
- }
-
- public static void asyncGetLocation() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
- ApiFuture future = sequenceServiceClient.getLocationCallable().futureCall(request);
- // Do something.
- Location response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_GetLocation_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getlocation/SyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getlocation/SyncGetLocation.java
deleted file mode 100644
index 7a860d3baf..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getlocation/SyncGetLocation.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_GetLocation_sync]
-import com.google.cloud.location.GetLocationRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-
-public class SyncGetLocation {
-
- public static void main(String[] args) throws Exception {
- syncGetLocation();
- }
-
- public static void syncGetLocation() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
- Location response = sequenceServiceClient.getLocation(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_GetLocation_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/AsyncGetSequenceReport.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/AsyncGetSequenceReport.java
deleted file mode 100644
index 8a14615185..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/AsyncGetSequenceReport.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_GetSequenceReport_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.GetSequenceReportRequest;
-import com.google.showcase.v1beta1.SequenceReport;
-import com.google.showcase.v1beta1.SequenceReportName;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-
-public class AsyncGetSequenceReport {
-
- public static void main(String[] args) throws Exception {
- asyncGetSequenceReport();
- }
-
- public static void asyncGetSequenceReport() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- GetSequenceReportRequest request =
- GetSequenceReportRequest.newBuilder()
- .setName(SequenceReportName.of("[SEQUENCE]").toString())
- .build();
- ApiFuture future =
- sequenceServiceClient.getSequenceReportCallable().futureCall(request);
- // Do something.
- SequenceReport response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_GetSequenceReport_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReport.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReport.java
deleted file mode 100644
index 3e3e410171..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReport.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_GetSequenceReport_sync]
-import com.google.showcase.v1beta1.GetSequenceReportRequest;
-import com.google.showcase.v1beta1.SequenceReport;
-import com.google.showcase.v1beta1.SequenceReportName;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-
-public class SyncGetSequenceReport {
-
- public static void main(String[] args) throws Exception {
- syncGetSequenceReport();
- }
-
- public static void syncGetSequenceReport() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- GetSequenceReportRequest request =
- GetSequenceReportRequest.newBuilder()
- .setName(SequenceReportName.of("[SEQUENCE]").toString())
- .build();
- SequenceReport response = sequenceServiceClient.getSequenceReport(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_GetSequenceReport_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportSequencereportname.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportSequencereportname.java
deleted file mode 100644
index d58281a004..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportSequencereportname.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_GetSequenceReport_Sequencereportname_sync]
-import com.google.showcase.v1beta1.SequenceReport;
-import com.google.showcase.v1beta1.SequenceReportName;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-
-public class SyncGetSequenceReportSequencereportname {
-
- public static void main(String[] args) throws Exception {
- syncGetSequenceReportSequencereportname();
- }
-
- public static void syncGetSequenceReportSequencereportname() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- SequenceReportName name = SequenceReportName.of("[SEQUENCE]");
- SequenceReport response = sequenceServiceClient.getSequenceReport(name);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_GetSequenceReport_Sequencereportname_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportString.java
deleted file mode 100644
index 19d7a1d2cd..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getsequencereport/SyncGetSequenceReportString.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_GetSequenceReport_String_sync]
-import com.google.showcase.v1beta1.SequenceReport;
-import com.google.showcase.v1beta1.SequenceReportName;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-
-public class SyncGetSequenceReportString {
-
- public static void main(String[] args) throws Exception {
- syncGetSequenceReportString();
- }
-
- public static void syncGetSequenceReportString() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- String name = SequenceReportName.of("[SEQUENCE]").toString();
- SequenceReport response = sequenceServiceClient.getSequenceReport(name);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_GetSequenceReport_String_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/AsyncGetStreamingSequenceReport.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/AsyncGetStreamingSequenceReport.java
deleted file mode 100644
index 82f1e352c9..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/AsyncGetStreamingSequenceReport.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.GetStreamingSequenceReportRequest;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-import com.google.showcase.v1beta1.StreamingSequenceReport;
-import com.google.showcase.v1beta1.StreamingSequenceReportName;
-
-public class AsyncGetStreamingSequenceReport {
-
- public static void main(String[] args) throws Exception {
- asyncGetStreamingSequenceReport();
- }
-
- public static void asyncGetStreamingSequenceReport() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- GetStreamingSequenceReportRequest request =
- GetStreamingSequenceReportRequest.newBuilder()
- .setName(StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString())
- .build();
- ApiFuture future =
- sequenceServiceClient.getStreamingSequenceReportCallable().futureCall(request);
- // Do something.
- StreamingSequenceReport response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReport.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReport.java
deleted file mode 100644
index c5d6e0b129..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReport.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_sync]
-import com.google.showcase.v1beta1.GetStreamingSequenceReportRequest;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-import com.google.showcase.v1beta1.StreamingSequenceReport;
-import com.google.showcase.v1beta1.StreamingSequenceReportName;
-
-public class SyncGetStreamingSequenceReport {
-
- public static void main(String[] args) throws Exception {
- syncGetStreamingSequenceReport();
- }
-
- public static void syncGetStreamingSequenceReport() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- GetStreamingSequenceReportRequest request =
- GetStreamingSequenceReportRequest.newBuilder()
- .setName(StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString())
- .build();
- StreamingSequenceReport response = sequenceServiceClient.getStreamingSequenceReport(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportStreamingsequencereportname.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportStreamingsequencereportname.java
deleted file mode 100644
index b9d12059c1..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportStreamingsequencereportname.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_Streamingsequencereportname_sync]
-import com.google.showcase.v1beta1.SequenceServiceClient;
-import com.google.showcase.v1beta1.StreamingSequenceReport;
-import com.google.showcase.v1beta1.StreamingSequenceReportName;
-
-public class SyncGetStreamingSequenceReportStreamingsequencereportname {
-
- public static void main(String[] args) throws Exception {
- syncGetStreamingSequenceReportStreamingsequencereportname();
- }
-
- public static void syncGetStreamingSequenceReportStreamingsequencereportname() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- StreamingSequenceReportName name = StreamingSequenceReportName.of("[STREAMING_SEQUENCE]");
- StreamingSequenceReport response = sequenceServiceClient.getStreamingSequenceReport(name);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_Streamingsequencereportname_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportString.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportString.java
deleted file mode 100644
index 371a13d576..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/getstreamingsequencereport/SyncGetStreamingSequenceReportString.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_String_sync]
-import com.google.showcase.v1beta1.SequenceServiceClient;
-import com.google.showcase.v1beta1.StreamingSequenceReport;
-import com.google.showcase.v1beta1.StreamingSequenceReportName;
-
-public class SyncGetStreamingSequenceReportString {
-
- public static void main(String[] args) throws Exception {
- syncGetStreamingSequenceReportString();
- }
-
- public static void syncGetStreamingSequenceReportString() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- String name = StreamingSequenceReportName.of("[STREAMING_SEQUENCE]").toString();
- StreamingSequenceReport response = sequenceServiceClient.getStreamingSequenceReport(name);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_GetStreamingSequenceReport_String_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/listlocations/AsyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/listlocations/AsyncListLocations.java
deleted file mode 100644
index 55e009f358..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/listlocations/AsyncListLocations.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_ListLocations_async]
-import com.google.api.core.ApiFuture;
-import com.google.cloud.location.ListLocationsRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-
-public class AsyncListLocations {
-
- public static void main(String[] args) throws Exception {
- asyncListLocations();
- }
-
- public static void asyncListLocations() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- ListLocationsRequest request =
- ListLocationsRequest.newBuilder()
- .setName("name3373707")
- .setFilter("filter-1274492040")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- ApiFuture future =
- sequenceServiceClient.listLocationsPagedCallable().futureCall(request);
- // Do something.
- for (Location element : future.get().iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_ListLocations_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/listlocations/AsyncListLocationsPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/listlocations/AsyncListLocationsPaged.java
deleted file mode 100644
index 3fecc1df95..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/listlocations/AsyncListLocationsPaged.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_ListLocations_Paged_async]
-import com.google.cloud.location.ListLocationsRequest;
-import com.google.cloud.location.ListLocationsResponse;
-import com.google.cloud.location.Location;
-import com.google.common.base.Strings;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-
-public class AsyncListLocationsPaged {
-
- public static void main(String[] args) throws Exception {
- asyncListLocationsPaged();
- }
-
- public static void asyncListLocationsPaged() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- ListLocationsRequest request =
- ListLocationsRequest.newBuilder()
- .setName("name3373707")
- .setFilter("filter-1274492040")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- while (true) {
- ListLocationsResponse response =
- sequenceServiceClient.listLocationsCallable().call(request);
- for (Location element : response.getLocationsList()) {
- // doThingsWith(element);
- }
- String nextPageToken = response.getNextPageToken();
- if (!Strings.isNullOrEmpty(nextPageToken)) {
- request = request.toBuilder().setPageToken(nextPageToken).build();
- } else {
- break;
- }
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_ListLocations_Paged_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/listlocations/SyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/listlocations/SyncListLocations.java
deleted file mode 100644
index b8efabbf06..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/listlocations/SyncListLocations.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_ListLocations_sync]
-import com.google.cloud.location.ListLocationsRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-
-public class SyncListLocations {
-
- public static void main(String[] args) throws Exception {
- syncListLocations();
- }
-
- public static void syncListLocations() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- ListLocationsRequest request =
- ListLocationsRequest.newBuilder()
- .setName("name3373707")
- .setFilter("filter-1274492040")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- for (Location element : sequenceServiceClient.listLocations(request).iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_ListLocations_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/setiampolicy/AsyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/setiampolicy/AsyncSetIamPolicy.java
deleted file mode 100644
index cde47f39a7..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/setiampolicy/AsyncSetIamPolicy.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_SetIamPolicy_async]
-import com.google.api.core.ApiFuture;
-import com.google.iam.v1.Policy;
-import com.google.iam.v1.SetIamPolicyRequest;
-import com.google.protobuf.FieldMask;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-
-public class AsyncSetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- asyncSetIamPolicy();
- }
-
- public static void asyncSetIamPolicy() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- SetIamPolicyRequest request =
- SetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setPolicy(Policy.newBuilder().build())
- .setUpdateMask(FieldMask.newBuilder().build())
- .build();
- ApiFuture future = sequenceServiceClient.setIamPolicyCallable().futureCall(request);
- // Do something.
- Policy response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_SetIamPolicy_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/setiampolicy/SyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/setiampolicy/SyncSetIamPolicy.java
deleted file mode 100644
index decdd344f7..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/setiampolicy/SyncSetIamPolicy.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_SetIamPolicy_sync]
-import com.google.iam.v1.Policy;
-import com.google.iam.v1.SetIamPolicyRequest;
-import com.google.protobuf.FieldMask;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-
-public class SyncSetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- syncSetIamPolicy();
- }
-
- public static void syncSetIamPolicy() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- SetIamPolicyRequest request =
- SetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setPolicy(Policy.newBuilder().build())
- .setUpdateMask(FieldMask.newBuilder().build())
- .build();
- Policy response = sequenceServiceClient.setIamPolicy(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_SetIamPolicy_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/testiampermissions/AsyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/testiampermissions/AsyncTestIamPermissions.java
deleted file mode 100644
index 4624584ca1..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/testiampermissions/AsyncTestIamPermissions.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_TestIamPermissions_async]
-import com.google.api.core.ApiFuture;
-import com.google.iam.v1.TestIamPermissionsRequest;
-import com.google.iam.v1.TestIamPermissionsResponse;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-import java.util.ArrayList;
-
-public class AsyncTestIamPermissions {
-
- public static void main(String[] args) throws Exception {
- asyncTestIamPermissions();
- }
-
- public static void asyncTestIamPermissions() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- TestIamPermissionsRequest request =
- TestIamPermissionsRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .addAllPermissions(new ArrayList())
- .build();
- ApiFuture future =
- sequenceServiceClient.testIamPermissionsCallable().futureCall(request);
- // Do something.
- TestIamPermissionsResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_TestIamPermissions_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/testiampermissions/SyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/testiampermissions/SyncTestIamPermissions.java
deleted file mode 100644
index fb67adb36b..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservice/testiampermissions/SyncTestIamPermissions.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceService_TestIamPermissions_sync]
-import com.google.iam.v1.TestIamPermissionsRequest;
-import com.google.iam.v1.TestIamPermissionsResponse;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.SequenceServiceClient;
-import java.util.ArrayList;
-
-public class SyncTestIamPermissions {
-
- public static void main(String[] args) throws Exception {
- syncTestIamPermissions();
- }
-
- public static void syncTestIamPermissions() 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 (SequenceServiceClient sequenceServiceClient = SequenceServiceClient.create()) {
- TestIamPermissionsRequest request =
- TestIamPermissionsRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .addAllPermissions(new ArrayList())
- .build();
- TestIamPermissionsResponse response = sequenceServiceClient.testIamPermissions(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceService_TestIamPermissions_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservicesettings/createsequence/SyncCreateSequence.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservicesettings/createsequence/SyncCreateSequence.java
deleted file mode 100644
index b8477110e1..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/sequenceservicesettings/createsequence/SyncCreateSequence.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceServiceSettings_CreateSequence_sync]
-import com.google.showcase.v1beta1.SequenceServiceSettings;
-import java.time.Duration;
-
-public class SyncCreateSequence {
-
- public static void main(String[] args) throws Exception {
- syncCreateSequence();
- }
-
- public static void syncCreateSequence() 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
- SequenceServiceSettings.Builder sequenceServiceSettingsBuilder =
- SequenceServiceSettings.newBuilder();
- sequenceServiceSettingsBuilder
- .createSequenceSettings()
- .setRetrySettings(
- sequenceServiceSettingsBuilder
- .createSequenceSettings()
- .getRetrySettings()
- .toBuilder()
- .setTotalTimeout(Duration.ofSeconds(30))
- .build());
- SequenceServiceSettings sequenceServiceSettings = sequenceServiceSettingsBuilder.build();
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceServiceSettings_CreateSequence_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/compliancestubsettings/repeatdatabody/SyncRepeatDataBody.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/compliancestubsettings/repeatdatabody/SyncRepeatDataBody.java
deleted file mode 100644
index 75d482a906..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/compliancestubsettings/repeatdatabody/SyncRepeatDataBody.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.stub.samples;
-
-// [START localhost7469_v1beta1_generated_ComplianceStubSettings_RepeatDataBody_sync]
-import com.google.showcase.v1beta1.stub.ComplianceStubSettings;
-import java.time.Duration;
-
-public class SyncRepeatDataBody {
-
- public static void main(String[] args) throws Exception {
- syncRepeatDataBody();
- }
-
- public static void syncRepeatDataBody() 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
- ComplianceStubSettings.Builder complianceSettingsBuilder = ComplianceStubSettings.newBuilder();
- complianceSettingsBuilder
- .repeatDataBodySettings()
- .setRetrySettings(
- complianceSettingsBuilder
- .repeatDataBodySettings()
- .getRetrySettings()
- .toBuilder()
- .setTotalTimeout(Duration.ofSeconds(30))
- .build());
- ComplianceStubSettings complianceSettings = complianceSettingsBuilder.build();
- }
-}
-// [END localhost7469_v1beta1_generated_ComplianceStubSettings_RepeatDataBody_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/echostubsettings/echo/SyncEcho.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/echostubsettings/echo/SyncEcho.java
deleted file mode 100644
index 07a83fc1a5..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/echostubsettings/echo/SyncEcho.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.stub.samples;
-
-// [START localhost7469_v1beta1_generated_EchoStubSettings_Echo_sync]
-import com.google.showcase.v1beta1.stub.EchoStubSettings;
-import java.time.Duration;
-
-public class SyncEcho {
-
- public static void main(String[] args) throws Exception {
- syncEcho();
- }
-
- public static void syncEcho() 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
- EchoStubSettings.Builder echoSettingsBuilder = EchoStubSettings.newBuilder();
- echoSettingsBuilder
- .echoSettings()
- .setRetrySettings(
- echoSettingsBuilder
- .echoSettings()
- .getRetrySettings()
- .toBuilder()
- .setTotalTimeout(Duration.ofSeconds(30))
- .build());
- EchoStubSettings echoSettings = echoSettingsBuilder.build();
- }
-}
-// [END localhost7469_v1beta1_generated_EchoStubSettings_Echo_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/identitystubsettings/createuser/SyncCreateUser.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/identitystubsettings/createuser/SyncCreateUser.java
deleted file mode 100644
index b89ecce73c..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/identitystubsettings/createuser/SyncCreateUser.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.stub.samples;
-
-// [START localhost7469_v1beta1_generated_IdentityStubSettings_CreateUser_sync]
-import com.google.showcase.v1beta1.stub.IdentityStubSettings;
-import java.time.Duration;
-
-public class SyncCreateUser {
-
- public static void main(String[] args) throws Exception {
- syncCreateUser();
- }
-
- public static void syncCreateUser() 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
- IdentityStubSettings.Builder identitySettingsBuilder = IdentityStubSettings.newBuilder();
- identitySettingsBuilder
- .createUserSettings()
- .setRetrySettings(
- identitySettingsBuilder
- .createUserSettings()
- .getRetrySettings()
- .toBuilder()
- .setTotalTimeout(Duration.ofSeconds(30))
- .build());
- IdentityStubSettings identitySettings = identitySettingsBuilder.build();
- }
-}
-// [END localhost7469_v1beta1_generated_IdentityStubSettings_CreateUser_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/messagingstubsettings/createroom/SyncCreateRoom.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/messagingstubsettings/createroom/SyncCreateRoom.java
deleted file mode 100644
index a927d0c84c..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/messagingstubsettings/createroom/SyncCreateRoom.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.stub.samples;
-
-// [START localhost7469_v1beta1_generated_MessagingStubSettings_CreateRoom_sync]
-import com.google.showcase.v1beta1.stub.MessagingStubSettings;
-import java.time.Duration;
-
-public class SyncCreateRoom {
-
- public static void main(String[] args) throws Exception {
- syncCreateRoom();
- }
-
- public static void syncCreateRoom() 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
- MessagingStubSettings.Builder messagingSettingsBuilder = MessagingStubSettings.newBuilder();
- messagingSettingsBuilder
- .createRoomSettings()
- .setRetrySettings(
- messagingSettingsBuilder
- .createRoomSettings()
- .getRetrySettings()
- .toBuilder()
- .setTotalTimeout(Duration.ofSeconds(30))
- .build());
- MessagingStubSettings messagingSettings = messagingSettingsBuilder.build();
- }
-}
-// [END localhost7469_v1beta1_generated_MessagingStubSettings_CreateRoom_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/sequenceservicestubsettings/createsequence/SyncCreateSequence.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/sequenceservicestubsettings/createsequence/SyncCreateSequence.java
deleted file mode 100644
index 56d3f8cfbb..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/sequenceservicestubsettings/createsequence/SyncCreateSequence.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.stub.samples;
-
-// [START localhost7469_v1beta1_generated_SequenceServiceStubSettings_CreateSequence_sync]
-import com.google.showcase.v1beta1.stub.SequenceServiceStubSettings;
-import java.time.Duration;
-
-public class SyncCreateSequence {
-
- public static void main(String[] args) throws Exception {
- syncCreateSequence();
- }
-
- public static void syncCreateSequence() 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
- SequenceServiceStubSettings.Builder sequenceServiceSettingsBuilder =
- SequenceServiceStubSettings.newBuilder();
- sequenceServiceSettingsBuilder
- .createSequenceSettings()
- .setRetrySettings(
- sequenceServiceSettingsBuilder
- .createSequenceSettings()
- .getRetrySettings()
- .toBuilder()
- .setTotalTimeout(Duration.ofSeconds(30))
- .build());
- SequenceServiceStubSettings sequenceServiceSettings = sequenceServiceSettingsBuilder.build();
- }
-}
-// [END localhost7469_v1beta1_generated_SequenceServiceStubSettings_CreateSequence_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/testingstubsettings/createsession/SyncCreateSession.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/testingstubsettings/createsession/SyncCreateSession.java
deleted file mode 100644
index 7634331732..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/stub/testingstubsettings/createsession/SyncCreateSession.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.stub.samples;
-
-// [START localhost7469_v1beta1_generated_TestingStubSettings_CreateSession_sync]
-import com.google.showcase.v1beta1.stub.TestingStubSettings;
-import java.time.Duration;
-
-public class SyncCreateSession {
-
- public static void main(String[] args) throws Exception {
- syncCreateSession();
- }
-
- public static void syncCreateSession() 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
- TestingStubSettings.Builder testingSettingsBuilder = TestingStubSettings.newBuilder();
- testingSettingsBuilder
- .createSessionSettings()
- .setRetrySettings(
- testingSettingsBuilder
- .createSessionSettings()
- .getRetrySettings()
- .toBuilder()
- .setTotalTimeout(Duration.ofSeconds(30))
- .build());
- TestingStubSettings testingSettings = testingSettingsBuilder.build();
- }
-}
-// [END localhost7469_v1beta1_generated_TestingStubSettings_CreateSession_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider.java
deleted file mode 100644
index a2491fa817..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_Create_SetCredentialsProvider_sync]
-import com.google.api.gax.core.FixedCredentialsProvider;
-import com.google.showcase.v1beta1.TestingClient;
-import com.google.showcase.v1beta1.TestingSettings;
-import com.google.showcase.v1beta1.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
- TestingSettings testingSettings =
- TestingSettings.newBuilder()
- .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- .build();
- TestingClient testingClient = TestingClient.create(testingSettings);
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_Create_SetCredentialsProvider_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider1.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider1.java
deleted file mode 100644
index b97ae4c71a..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetCredentialsProvider1.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_Create_SetCredentialsProvider1_sync]
-import com.google.showcase.v1beta1.TestingClient;
-import com.google.showcase.v1beta1.TestingSettings;
-
-public class SyncCreateSetCredentialsProvider1 {
-
- public static void main(String[] args) throws Exception {
- syncCreateSetCredentialsProvider1();
- }
-
- public static void syncCreateSetCredentialsProvider1() 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
- TestingSettings testingSettings = TestingSettings.newHttpJsonBuilder().build();
- TestingClient testingClient = TestingClient.create(testingSettings);
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_Create_SetCredentialsProvider1_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetEndpoint.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetEndpoint.java
deleted file mode 100644
index 00ba22a52e..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/create/SyncCreateSetEndpoint.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_Create_SetEndpoint_sync]
-import com.google.showcase.v1beta1.TestingClient;
-import com.google.showcase.v1beta1.TestingSettings;
-import com.google.showcase.v1beta1.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
- TestingSettings testingSettings = TestingSettings.newBuilder().setEndpoint(myEndpoint).build();
- TestingClient testingClient = TestingClient.create(testingSettings);
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_Create_SetEndpoint_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/createsession/AsyncCreateSession.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/createsession/AsyncCreateSession.java
deleted file mode 100644
index db99b30308..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/createsession/AsyncCreateSession.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_CreateSession_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.CreateSessionRequest;
-import com.google.showcase.v1beta1.Session;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class AsyncCreateSession {
-
- public static void main(String[] args) throws Exception {
- asyncCreateSession();
- }
-
- public static void asyncCreateSession() 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 (TestingClient testingClient = TestingClient.create()) {
- CreateSessionRequest request =
- CreateSessionRequest.newBuilder().setSession(Session.newBuilder().build()).build();
- ApiFuture future = testingClient.createSessionCallable().futureCall(request);
- // Do something.
- Session response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_CreateSession_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/createsession/SyncCreateSession.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/createsession/SyncCreateSession.java
deleted file mode 100644
index 7ef5eedff1..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/createsession/SyncCreateSession.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_CreateSession_sync]
-import com.google.showcase.v1beta1.CreateSessionRequest;
-import com.google.showcase.v1beta1.Session;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class SyncCreateSession {
-
- public static void main(String[] args) throws Exception {
- syncCreateSession();
- }
-
- public static void syncCreateSession() 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 (TestingClient testingClient = TestingClient.create()) {
- CreateSessionRequest request =
- CreateSessionRequest.newBuilder().setSession(Session.newBuilder().build()).build();
- Session response = testingClient.createSession(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_CreateSession_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletesession/AsyncDeleteSession.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletesession/AsyncDeleteSession.java
deleted file mode 100644
index 599807c54d..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletesession/AsyncDeleteSession.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_DeleteSession_async]
-import com.google.api.core.ApiFuture;
-import com.google.protobuf.Empty;
-import com.google.showcase.v1beta1.DeleteSessionRequest;
-import com.google.showcase.v1beta1.SessionName;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class AsyncDeleteSession {
-
- public static void main(String[] args) throws Exception {
- asyncDeleteSession();
- }
-
- public static void asyncDeleteSession() 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 (TestingClient testingClient = TestingClient.create()) {
- DeleteSessionRequest request =
- DeleteSessionRequest.newBuilder().setName(SessionName.of("[SESSION]").toString()).build();
- ApiFuture future = testingClient.deleteSessionCallable().futureCall(request);
- // Do something.
- future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_DeleteSession_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletesession/SyncDeleteSession.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletesession/SyncDeleteSession.java
deleted file mode 100644
index 42511365ea..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletesession/SyncDeleteSession.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_DeleteSession_sync]
-import com.google.protobuf.Empty;
-import com.google.showcase.v1beta1.DeleteSessionRequest;
-import com.google.showcase.v1beta1.SessionName;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class SyncDeleteSession {
-
- public static void main(String[] args) throws Exception {
- syncDeleteSession();
- }
-
- public static void syncDeleteSession() 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 (TestingClient testingClient = TestingClient.create()) {
- DeleteSessionRequest request =
- DeleteSessionRequest.newBuilder().setName(SessionName.of("[SESSION]").toString()).build();
- testingClient.deleteSession(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_DeleteSession_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletetest/AsyncDeleteTest.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletetest/AsyncDeleteTest.java
deleted file mode 100644
index 80b53283ba..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletetest/AsyncDeleteTest.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_DeleteTest_async]
-import com.google.api.core.ApiFuture;
-import com.google.protobuf.Empty;
-import com.google.showcase.v1beta1.DeleteTestRequest;
-import com.google.showcase.v1beta1.TestName;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class AsyncDeleteTest {
-
- public static void main(String[] args) throws Exception {
- asyncDeleteTest();
- }
-
- public static void asyncDeleteTest() 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 (TestingClient testingClient = TestingClient.create()) {
- DeleteTestRequest request =
- DeleteTestRequest.newBuilder()
- .setName(TestName.of("[SESSION]", "[TEST]").toString())
- .build();
- ApiFuture future = testingClient.deleteTestCallable().futureCall(request);
- // Do something.
- future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_DeleteTest_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletetest/SyncDeleteTest.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletetest/SyncDeleteTest.java
deleted file mode 100644
index a1a21df16a..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/deletetest/SyncDeleteTest.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_DeleteTest_sync]
-import com.google.protobuf.Empty;
-import com.google.showcase.v1beta1.DeleteTestRequest;
-import com.google.showcase.v1beta1.TestName;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class SyncDeleteTest {
-
- public static void main(String[] args) throws Exception {
- syncDeleteTest();
- }
-
- public static void syncDeleteTest() 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 (TestingClient testingClient = TestingClient.create()) {
- DeleteTestRequest request =
- DeleteTestRequest.newBuilder()
- .setName(TestName.of("[SESSION]", "[TEST]").toString())
- .build();
- testingClient.deleteTest(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_DeleteTest_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getiampolicy/AsyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getiampolicy/AsyncGetIamPolicy.java
deleted file mode 100644
index d92ada007e..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getiampolicy/AsyncGetIamPolicy.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_GetIamPolicy_async]
-import com.google.api.core.ApiFuture;
-import com.google.iam.v1.GetIamPolicyRequest;
-import com.google.iam.v1.GetPolicyOptions;
-import com.google.iam.v1.Policy;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class AsyncGetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- asyncGetIamPolicy();
- }
-
- public static void asyncGetIamPolicy() 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 (TestingClient testingClient = TestingClient.create()) {
- GetIamPolicyRequest request =
- GetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setOptions(GetPolicyOptions.newBuilder().build())
- .build();
- ApiFuture future = testingClient.getIamPolicyCallable().futureCall(request);
- // Do something.
- Policy response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_GetIamPolicy_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getiampolicy/SyncGetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getiampolicy/SyncGetIamPolicy.java
deleted file mode 100644
index 3b9ac18734..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getiampolicy/SyncGetIamPolicy.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_GetIamPolicy_sync]
-import com.google.iam.v1.GetIamPolicyRequest;
-import com.google.iam.v1.GetPolicyOptions;
-import com.google.iam.v1.Policy;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class SyncGetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- syncGetIamPolicy();
- }
-
- public static void syncGetIamPolicy() 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 (TestingClient testingClient = TestingClient.create()) {
- GetIamPolicyRequest request =
- GetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setOptions(GetPolicyOptions.newBuilder().build())
- .build();
- Policy response = testingClient.getIamPolicy(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_GetIamPolicy_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getlocation/AsyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getlocation/AsyncGetLocation.java
deleted file mode 100644
index a10a2b1de7..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getlocation/AsyncGetLocation.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_GetLocation_async]
-import com.google.api.core.ApiFuture;
-import com.google.cloud.location.GetLocationRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class AsyncGetLocation {
-
- public static void main(String[] args) throws Exception {
- asyncGetLocation();
- }
-
- public static void asyncGetLocation() 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 (TestingClient testingClient = TestingClient.create()) {
- GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
- ApiFuture future = testingClient.getLocationCallable().futureCall(request);
- // Do something.
- Location response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_GetLocation_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getlocation/SyncGetLocation.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getlocation/SyncGetLocation.java
deleted file mode 100644
index 51fb9527ed..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getlocation/SyncGetLocation.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_GetLocation_sync]
-import com.google.cloud.location.GetLocationRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class SyncGetLocation {
-
- public static void main(String[] args) throws Exception {
- syncGetLocation();
- }
-
- public static void syncGetLocation() 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 (TestingClient testingClient = TestingClient.create()) {
- GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
- Location response = testingClient.getLocation(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_GetLocation_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getsession/AsyncGetSession.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getsession/AsyncGetSession.java
deleted file mode 100644
index 280a83f54c..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getsession/AsyncGetSession.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_GetSession_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.GetSessionRequest;
-import com.google.showcase.v1beta1.Session;
-import com.google.showcase.v1beta1.SessionName;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class AsyncGetSession {
-
- public static void main(String[] args) throws Exception {
- asyncGetSession();
- }
-
- public static void asyncGetSession() 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 (TestingClient testingClient = TestingClient.create()) {
- GetSessionRequest request =
- GetSessionRequest.newBuilder().setName(SessionName.of("[SESSION]").toString()).build();
- ApiFuture future = testingClient.getSessionCallable().futureCall(request);
- // Do something.
- Session response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_GetSession_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getsession/SyncGetSession.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getsession/SyncGetSession.java
deleted file mode 100644
index 8402741332..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/getsession/SyncGetSession.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_GetSession_sync]
-import com.google.showcase.v1beta1.GetSessionRequest;
-import com.google.showcase.v1beta1.Session;
-import com.google.showcase.v1beta1.SessionName;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class SyncGetSession {
-
- public static void main(String[] args) throws Exception {
- syncGetSession();
- }
-
- public static void syncGetSession() 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 (TestingClient testingClient = TestingClient.create()) {
- GetSessionRequest request =
- GetSessionRequest.newBuilder().setName(SessionName.of("[SESSION]").toString()).build();
- Session response = testingClient.getSession(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_GetSession_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listlocations/AsyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listlocations/AsyncListLocations.java
deleted file mode 100644
index 4007d78d82..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listlocations/AsyncListLocations.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_ListLocations_async]
-import com.google.api.core.ApiFuture;
-import com.google.cloud.location.ListLocationsRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class AsyncListLocations {
-
- public static void main(String[] args) throws Exception {
- asyncListLocations();
- }
-
- public static void asyncListLocations() 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 (TestingClient testingClient = TestingClient.create()) {
- ListLocationsRequest request =
- ListLocationsRequest.newBuilder()
- .setName("name3373707")
- .setFilter("filter-1274492040")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- ApiFuture future = testingClient.listLocationsPagedCallable().futureCall(request);
- // Do something.
- for (Location element : future.get().iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_ListLocations_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listlocations/AsyncListLocationsPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listlocations/AsyncListLocationsPaged.java
deleted file mode 100644
index ae6dbd4a3f..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listlocations/AsyncListLocationsPaged.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_ListLocations_Paged_async]
-import com.google.cloud.location.ListLocationsRequest;
-import com.google.cloud.location.ListLocationsResponse;
-import com.google.cloud.location.Location;
-import com.google.common.base.Strings;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class AsyncListLocationsPaged {
-
- public static void main(String[] args) throws Exception {
- asyncListLocationsPaged();
- }
-
- public static void asyncListLocationsPaged() 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 (TestingClient testingClient = TestingClient.create()) {
- ListLocationsRequest request =
- ListLocationsRequest.newBuilder()
- .setName("name3373707")
- .setFilter("filter-1274492040")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- while (true) {
- ListLocationsResponse response = testingClient.listLocationsCallable().call(request);
- for (Location element : response.getLocationsList()) {
- // doThingsWith(element);
- }
- String nextPageToken = response.getNextPageToken();
- if (!Strings.isNullOrEmpty(nextPageToken)) {
- request = request.toBuilder().setPageToken(nextPageToken).build();
- } else {
- break;
- }
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_ListLocations_Paged_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listlocations/SyncListLocations.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listlocations/SyncListLocations.java
deleted file mode 100644
index 288df0668a..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listlocations/SyncListLocations.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_ListLocations_sync]
-import com.google.cloud.location.ListLocationsRequest;
-import com.google.cloud.location.Location;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class SyncListLocations {
-
- public static void main(String[] args) throws Exception {
- syncListLocations();
- }
-
- public static void syncListLocations() 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 (TestingClient testingClient = TestingClient.create()) {
- ListLocationsRequest request =
- ListLocationsRequest.newBuilder()
- .setName("name3373707")
- .setFilter("filter-1274492040")
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- for (Location element : testingClient.listLocations(request).iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_ListLocations_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessions.java
deleted file mode 100644
index 0fe2c90438..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessions.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_ListSessions_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.ListSessionsRequest;
-import com.google.showcase.v1beta1.Session;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class AsyncListSessions {
-
- public static void main(String[] args) throws Exception {
- asyncListSessions();
- }
-
- public static void asyncListSessions() 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 (TestingClient testingClient = TestingClient.create()) {
- ListSessionsRequest request =
- ListSessionsRequest.newBuilder()
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- ApiFuture future = testingClient.listSessionsPagedCallable().futureCall(request);
- // Do something.
- for (Session element : future.get().iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_ListSessions_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessionsPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessionsPaged.java
deleted file mode 100644
index 3d96b53e35..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/AsyncListSessionsPaged.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_ListSessions_Paged_async]
-import com.google.common.base.Strings;
-import com.google.showcase.v1beta1.ListSessionsRequest;
-import com.google.showcase.v1beta1.ListSessionsResponse;
-import com.google.showcase.v1beta1.Session;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class AsyncListSessionsPaged {
-
- public static void main(String[] args) throws Exception {
- asyncListSessionsPaged();
- }
-
- public static void asyncListSessionsPaged() 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 (TestingClient testingClient = TestingClient.create()) {
- ListSessionsRequest request =
- ListSessionsRequest.newBuilder()
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- while (true) {
- ListSessionsResponse response = testingClient.listSessionsCallable().call(request);
- for (Session element : response.getSessionsList()) {
- // doThingsWith(element);
- }
- String nextPageToken = response.getNextPageToken();
- if (!Strings.isNullOrEmpty(nextPageToken)) {
- request = request.toBuilder().setPageToken(nextPageToken).build();
- } else {
- break;
- }
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_ListSessions_Paged_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/SyncListSessions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/SyncListSessions.java
deleted file mode 100644
index 6c1758880c..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listsessions/SyncListSessions.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_ListSessions_sync]
-import com.google.showcase.v1beta1.ListSessionsRequest;
-import com.google.showcase.v1beta1.Session;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class SyncListSessions {
-
- public static void main(String[] args) throws Exception {
- syncListSessions();
- }
-
- public static void syncListSessions() 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 (TestingClient testingClient = TestingClient.create()) {
- ListSessionsRequest request =
- ListSessionsRequest.newBuilder()
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- for (Session element : testingClient.listSessions(request).iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_ListSessions_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTests.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTests.java
deleted file mode 100644
index d4d46cda48..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTests.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_ListTests_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.ListTestsRequest;
-import com.google.showcase.v1beta1.SessionName;
-import com.google.showcase.v1beta1.Test;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class AsyncListTests {
-
- public static void main(String[] args) throws Exception {
- asyncListTests();
- }
-
- public static void asyncListTests() 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 (TestingClient testingClient = TestingClient.create()) {
- ListTestsRequest request =
- ListTestsRequest.newBuilder()
- .setParent(SessionName.of("[SESSION]").toString())
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- ApiFuture future = testingClient.listTestsPagedCallable().futureCall(request);
- // Do something.
- for (Test element : future.get().iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_ListTests_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTestsPaged.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTestsPaged.java
deleted file mode 100644
index 66483a07b5..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/AsyncListTestsPaged.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_ListTests_Paged_async]
-import com.google.common.base.Strings;
-import com.google.showcase.v1beta1.ListTestsRequest;
-import com.google.showcase.v1beta1.ListTestsResponse;
-import com.google.showcase.v1beta1.SessionName;
-import com.google.showcase.v1beta1.Test;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class AsyncListTestsPaged {
-
- public static void main(String[] args) throws Exception {
- asyncListTestsPaged();
- }
-
- public static void asyncListTestsPaged() 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 (TestingClient testingClient = TestingClient.create()) {
- ListTestsRequest request =
- ListTestsRequest.newBuilder()
- .setParent(SessionName.of("[SESSION]").toString())
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- while (true) {
- ListTestsResponse response = testingClient.listTestsCallable().call(request);
- for (Test element : response.getTestsList()) {
- // doThingsWith(element);
- }
- String nextPageToken = response.getNextPageToken();
- if (!Strings.isNullOrEmpty(nextPageToken)) {
- request = request.toBuilder().setPageToken(nextPageToken).build();
- } else {
- break;
- }
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_ListTests_Paged_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/SyncListTests.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/SyncListTests.java
deleted file mode 100644
index 6f64d0191d..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/listtests/SyncListTests.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_ListTests_sync]
-import com.google.showcase.v1beta1.ListTestsRequest;
-import com.google.showcase.v1beta1.SessionName;
-import com.google.showcase.v1beta1.Test;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class SyncListTests {
-
- public static void main(String[] args) throws Exception {
- syncListTests();
- }
-
- public static void syncListTests() 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 (TestingClient testingClient = TestingClient.create()) {
- ListTestsRequest request =
- ListTestsRequest.newBuilder()
- .setParent(SessionName.of("[SESSION]").toString())
- .setPageSize(883849137)
- .setPageToken("pageToken873572522")
- .build();
- for (Test element : testingClient.listTests(request).iterateAll()) {
- // doThingsWith(element);
- }
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_ListTests_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/reportsession/AsyncReportSession.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/reportsession/AsyncReportSession.java
deleted file mode 100644
index 8f0382f500..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/reportsession/AsyncReportSession.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_ReportSession_async]
-import com.google.api.core.ApiFuture;
-import com.google.showcase.v1beta1.ReportSessionRequest;
-import com.google.showcase.v1beta1.ReportSessionResponse;
-import com.google.showcase.v1beta1.SessionName;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class AsyncReportSession {
-
- public static void main(String[] args) throws Exception {
- asyncReportSession();
- }
-
- public static void asyncReportSession() 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 (TestingClient testingClient = TestingClient.create()) {
- ReportSessionRequest request =
- ReportSessionRequest.newBuilder().setName(SessionName.of("[SESSION]").toString()).build();
- ApiFuture future =
- testingClient.reportSessionCallable().futureCall(request);
- // Do something.
- ReportSessionResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_ReportSession_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/reportsession/SyncReportSession.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/reportsession/SyncReportSession.java
deleted file mode 100644
index 9a5c5ff880..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/reportsession/SyncReportSession.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_ReportSession_sync]
-import com.google.showcase.v1beta1.ReportSessionRequest;
-import com.google.showcase.v1beta1.ReportSessionResponse;
-import com.google.showcase.v1beta1.SessionName;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class SyncReportSession {
-
- public static void main(String[] args) throws Exception {
- syncReportSession();
- }
-
- public static void syncReportSession() 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 (TestingClient testingClient = TestingClient.create()) {
- ReportSessionRequest request =
- ReportSessionRequest.newBuilder().setName(SessionName.of("[SESSION]").toString()).build();
- ReportSessionResponse response = testingClient.reportSession(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_ReportSession_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/setiampolicy/AsyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/setiampolicy/AsyncSetIamPolicy.java
deleted file mode 100644
index 120fcb2dd3..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/setiampolicy/AsyncSetIamPolicy.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_SetIamPolicy_async]
-import com.google.api.core.ApiFuture;
-import com.google.iam.v1.Policy;
-import com.google.iam.v1.SetIamPolicyRequest;
-import com.google.protobuf.FieldMask;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class AsyncSetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- asyncSetIamPolicy();
- }
-
- public static void asyncSetIamPolicy() 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 (TestingClient testingClient = TestingClient.create()) {
- SetIamPolicyRequest request =
- SetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setPolicy(Policy.newBuilder().build())
- .setUpdateMask(FieldMask.newBuilder().build())
- .build();
- ApiFuture future = testingClient.setIamPolicyCallable().futureCall(request);
- // Do something.
- Policy response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_SetIamPolicy_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/setiampolicy/SyncSetIamPolicy.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/setiampolicy/SyncSetIamPolicy.java
deleted file mode 100644
index 15cd8d3486..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/setiampolicy/SyncSetIamPolicy.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_SetIamPolicy_sync]
-import com.google.iam.v1.Policy;
-import com.google.iam.v1.SetIamPolicyRequest;
-import com.google.protobuf.FieldMask;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.TestingClient;
-
-public class SyncSetIamPolicy {
-
- public static void main(String[] args) throws Exception {
- syncSetIamPolicy();
- }
-
- public static void syncSetIamPolicy() 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 (TestingClient testingClient = TestingClient.create()) {
- SetIamPolicyRequest request =
- SetIamPolicyRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .setPolicy(Policy.newBuilder().build())
- .setUpdateMask(FieldMask.newBuilder().build())
- .build();
- Policy response = testingClient.setIamPolicy(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_SetIamPolicy_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/testiampermissions/AsyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/testiampermissions/AsyncTestIamPermissions.java
deleted file mode 100644
index 5ccdca7be0..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/testiampermissions/AsyncTestIamPermissions.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_TestIamPermissions_async]
-import com.google.api.core.ApiFuture;
-import com.google.iam.v1.TestIamPermissionsRequest;
-import com.google.iam.v1.TestIamPermissionsResponse;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.TestingClient;
-import java.util.ArrayList;
-
-public class AsyncTestIamPermissions {
-
- public static void main(String[] args) throws Exception {
- asyncTestIamPermissions();
- }
-
- public static void asyncTestIamPermissions() 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 (TestingClient testingClient = TestingClient.create()) {
- TestIamPermissionsRequest request =
- TestIamPermissionsRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .addAllPermissions(new ArrayList())
- .build();
- ApiFuture future =
- testingClient.testIamPermissionsCallable().futureCall(request);
- // Do something.
- TestIamPermissionsResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_TestIamPermissions_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/testiampermissions/SyncTestIamPermissions.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/testiampermissions/SyncTestIamPermissions.java
deleted file mode 100644
index e9e0d23048..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/testiampermissions/SyncTestIamPermissions.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_TestIamPermissions_sync]
-import com.google.iam.v1.TestIamPermissionsRequest;
-import com.google.iam.v1.TestIamPermissionsResponse;
-import com.google.showcase.v1beta1.BlurbName;
-import com.google.showcase.v1beta1.TestingClient;
-import java.util.ArrayList;
-
-public class SyncTestIamPermissions {
-
- public static void main(String[] args) throws Exception {
- syncTestIamPermissions();
- }
-
- public static void syncTestIamPermissions() 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 (TestingClient testingClient = TestingClient.create()) {
- TestIamPermissionsRequest request =
- TestIamPermissionsRequest.newBuilder()
- .setResource(BlurbName.ofRoomBlurbName("[ROOM]", "[BLURB]").toString())
- .addAllPermissions(new ArrayList())
- .build();
- TestIamPermissionsResponse response = testingClient.testIamPermissions(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_TestIamPermissions_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/verifytest/AsyncVerifyTest.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/verifytest/AsyncVerifyTest.java
deleted file mode 100644
index 2f8264c4ce..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/verifytest/AsyncVerifyTest.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_VerifyTest_async]
-import com.google.api.core.ApiFuture;
-import com.google.protobuf.ByteString;
-import com.google.showcase.v1beta1.TestName;
-import com.google.showcase.v1beta1.TestingClient;
-import com.google.showcase.v1beta1.VerifyTestRequest;
-import com.google.showcase.v1beta1.VerifyTestResponse;
-import java.util.ArrayList;
-
-public class AsyncVerifyTest {
-
- public static void main(String[] args) throws Exception {
- asyncVerifyTest();
- }
-
- public static void asyncVerifyTest() 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 (TestingClient testingClient = TestingClient.create()) {
- VerifyTestRequest request =
- VerifyTestRequest.newBuilder()
- .setName(TestName.of("[SESSION]", "[TEST]").toString())
- .setAnswer(ByteString.EMPTY)
- .addAllAnswers(new ArrayList())
- .build();
- ApiFuture future = testingClient.verifyTestCallable().futureCall(request);
- // Do something.
- VerifyTestResponse response = future.get();
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_VerifyTest_async]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/verifytest/SyncVerifyTest.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/verifytest/SyncVerifyTest.java
deleted file mode 100644
index 99d852e77e..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testing/verifytest/SyncVerifyTest.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_Testing_VerifyTest_sync]
-import com.google.protobuf.ByteString;
-import com.google.showcase.v1beta1.TestName;
-import com.google.showcase.v1beta1.TestingClient;
-import com.google.showcase.v1beta1.VerifyTestRequest;
-import com.google.showcase.v1beta1.VerifyTestResponse;
-import java.util.ArrayList;
-
-public class SyncVerifyTest {
-
- public static void main(String[] args) throws Exception {
- syncVerifyTest();
- }
-
- public static void syncVerifyTest() 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 (TestingClient testingClient = TestingClient.create()) {
- VerifyTestRequest request =
- VerifyTestRequest.newBuilder()
- .setName(TestName.of("[SESSION]", "[TEST]").toString())
- .setAnswer(ByteString.EMPTY)
- .addAllAnswers(new ArrayList())
- .build();
- VerifyTestResponse response = testingClient.verifyTest(request);
- }
- }
-}
-// [END localhost7469_v1beta1_generated_Testing_VerifyTest_sync]
diff --git a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testingsettings/createsession/SyncCreateSession.java b/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testingsettings/createsession/SyncCreateSession.java
deleted file mode 100644
index a7f59e9e34..0000000000
--- a/java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/testingsettings/createsession/SyncCreateSession.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2023 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.showcase.v1beta1.samples;
-
-// [START localhost7469_v1beta1_generated_TestingSettings_CreateSession_sync]
-import com.google.showcase.v1beta1.TestingSettings;
-import java.time.Duration;
-
-public class SyncCreateSession {
-
- public static void main(String[] args) throws Exception {
- syncCreateSession();
- }
-
- public static void syncCreateSession() 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
- TestingSettings.Builder testingSettingsBuilder = TestingSettings.newBuilder();
- testingSettingsBuilder
- .createSessionSettings()
- .setRetrySettings(
- testingSettingsBuilder
- .createSessionSettings()
- .getRetrySettings()
- .toBuilder()
- .setTotalTimeout(Duration.ofSeconds(30))
- .build());
- TestingSettings testingSettings = testingSettingsBuilder.build();
- }
-}
-// [END localhost7469_v1beta1_generated_TestingSettings_CreateSession_sync]
diff --git a/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/logging/ITLogging.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/logging/ITLogging.java
new file mode 100644
index 0000000000..5979b88c41
--- /dev/null
+++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/logging/ITLogging.java
@@ -0,0 +1,257 @@
+/*
+ * Copyright 2025 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.showcase.v1beta1.it.logging;
+
+import static com.google.common.truth.Truth.assertThat;
+
+import ch.qos.logback.classic.Level;
+import ch.qos.logback.classic.spi.ILoggingEvent;
+import com.google.api.gax.grpc.GrpcLoggingInterceptor;
+import com.google.api.gax.httpjson.HttpJsonLoggingInterceptor;
+import com.google.common.collect.ImmutableMap;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoRequest;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.it.util.TestClientInitializer;
+import java.util.List;
+import java.util.Map;
+import java.util.concurrent.TimeUnit;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
+import org.slf4j.LoggerFactory;
+import org.slf4j.event.KeyValuePair;
+
+// This test needs to run with GOOGLE_SDK_JAVA_LOGGING=true
+// mvn clean verify -P '!showcase,enable-integration-tests,loggingTestBase,slf4j2_logback'
+public class ITLogging {
+ private static EchoClient grpcClient;
+
+ private static EchoClient httpjsonClient;
+
+ private static final KeyValuePair SERVICE_NAME_KEY_VALUE_PAIR =
+ new KeyValuePair("serviceName", "google.showcase.v1beta1.Echo");
+ private static final KeyValuePair RPC_NAME_KEY_VALUE_PAIR =
+ new KeyValuePair("rpcName", "google.showcase.v1beta1.Echo/Echo");
+ private static final KeyValuePair RESPONSE_STATUS_KEY_VALUE_PAIR =
+ new KeyValuePair("response.status", "OK");
+ private static final KeyValuePair RESPONSE_STATUS_KEY_VALUE_PAIR_HTTP =
+ new KeyValuePair("response.status", "200");
+ private static final KeyValuePair REQUEST_URL_KEY_VALUE_PAIR =
+ new KeyValuePair("request.url", "http://localhost:7469");
+
+ private static final KeyValuePair RESPONSE_HEADERS_KEY_VALUE_PAIR =
+ new KeyValuePair("response.headers", ImmutableMap.of("content-type", "application/grpc"));
+
+ private static final String SENDING_REQUEST_MESSAGE = "Sending request";
+ private static final String RECEIVING_RESPONSE_MESSAGE = "Received response";
+ private static final String ECHO_STRING = "echo?";
+
+ private TestAppender setupTestLogger(Class> clazz, Level level) {
+ TestAppender testAppender = new TestAppender();
+ testAppender.start();
+ org.slf4j.Logger logger = LoggerFactory.getLogger(clazz);
+ ((ch.qos.logback.classic.Logger) logger).setLevel(level);
+ ((ch.qos.logback.classic.Logger) logger).addAppender(testAppender);
+ return testAppender;
+ }
+
+ @BeforeAll
+ static void createClients() throws Exception {
+ // Create gRPC Echo Client
+ grpcClient = TestClientInitializer.createGrpcEchoClient();
+ // Create Http JSON Echo Client
+ httpjsonClient = TestClientInitializer.createHttpJsonEchoClient();
+ }
+
+ @AfterAll
+ static void destroyClients() throws InterruptedException {
+ grpcClient.close();
+ httpjsonClient.close();
+
+ grpcClient.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS);
+ httpjsonClient.awaitTermination(
+ TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS);
+ }
+
+ @Test
+ void testGrpc_receiveContent_logDebug() {
+ TestAppender testAppender = setupTestLogger(GrpcLoggingInterceptor.class, Level.DEBUG);
+ assertThat(echoGrpc(ECHO_STRING)).isEqualTo(ECHO_STRING);
+
+ assertThat(testAppender.events.size()).isEqualTo(2);
+ // logging event for request
+ ILoggingEvent loggingEvent1 = testAppender.events.get(0);
+ assertThat(loggingEvent1.getMessage()).isEqualTo(SENDING_REQUEST_MESSAGE);
+ assertThat(loggingEvent1.getLevel()).isEqualTo(Level.DEBUG);
+ List keyValuePairs = loggingEvent1.getKeyValuePairs();
+ assertThat(keyValuePairs.size()).isEqualTo(4);
+ assertThat(keyValuePairs).containsAtLeast(SERVICE_NAME_KEY_VALUE_PAIR, RPC_NAME_KEY_VALUE_PAIR);
+
+ for (KeyValuePair kvp : keyValuePairs) {
+ if (kvp.key.equals("request.payload")) {
+ Map payload = (Map) kvp.value;
+ assertThat(payload.get("content")).isEqualTo(ECHO_STRING);
+ assertThat(payload.get("requestId")).isNotNull();
+ assertThat(payload.get("otherRequestId")).isNotNull();
+ }
+ if (kvp.key.equals("request.headers")) {
+ Map headers = (Map) kvp.value;
+ assertThat(headers).containsKey("x-goog-api-version");
+ assertThat(headers).containsKey("x-goog-api-client");
+ }
+ }
+
+ // logging event for response
+ ILoggingEvent loggingEvent2 = testAppender.events.get(1);
+ assertThat(loggingEvent2.getMessage()).isEqualTo(RECEIVING_RESPONSE_MESSAGE);
+
+ assertThat(loggingEvent2.getLevel()).isEqualTo(Level.DEBUG);
+ List keyValuePairs2 = loggingEvent2.getKeyValuePairs();
+ assertThat(keyValuePairs2.size()).isEqualTo(5);
+ assertThat(keyValuePairs2)
+ .containsAtLeast(
+ RESPONSE_STATUS_KEY_VALUE_PAIR,
+ RESPONSE_HEADERS_KEY_VALUE_PAIR,
+ SERVICE_NAME_KEY_VALUE_PAIR,
+ RPC_NAME_KEY_VALUE_PAIR);
+ for (KeyValuePair kvp : keyValuePairs2) {
+ if (kvp.key.equals("response.payload")) {
+ Map payload = (Map) kvp.value;
+ assertThat(payload.get("content")).isEqualTo(ECHO_STRING);
+ assertThat(payload.get("requestId")).isNotNull();
+ assertThat(payload.get("otherRequestId")).isNotNull();
+ }
+ }
+ testAppender.stop();
+ }
+
+ @Test
+ void testGrpc_receiveContent_logInfo() {
+ TestAppender testAppender = setupTestLogger(GrpcLoggingInterceptor.class, Level.INFO);
+ assertThat(echoGrpc(ECHO_STRING)).isEqualTo(ECHO_STRING);
+
+ assertThat(testAppender.events.size()).isEqualTo(2);
+ // logging event for request
+ ILoggingEvent loggingEvent1 = testAppender.events.get(0);
+ assertThat(loggingEvent1.getMessage()).isEqualTo(SENDING_REQUEST_MESSAGE);
+ assertThat(loggingEvent1.getLevel()).isEqualTo(Level.INFO);
+ List keyValuePairs = loggingEvent1.getKeyValuePairs();
+ assertThat(keyValuePairs.size()).isEqualTo(2);
+ assertThat(keyValuePairs).containsAtLeast(SERVICE_NAME_KEY_VALUE_PAIR, RPC_NAME_KEY_VALUE_PAIR);
+
+ // logging event for response
+ ILoggingEvent loggingEvent2 = testAppender.events.get(1);
+ assertThat(loggingEvent2.getMessage()).isEqualTo(RECEIVING_RESPONSE_MESSAGE);
+
+ assertThat(loggingEvent2.getLevel()).isEqualTo(Level.INFO);
+ List keyValuePairs2 = loggingEvent2.getKeyValuePairs();
+ assertThat(keyValuePairs2.size()).isEqualTo(3);
+ assertThat(keyValuePairs2)
+ .containsAtLeast(
+ RESPONSE_STATUS_KEY_VALUE_PAIR, SERVICE_NAME_KEY_VALUE_PAIR, RPC_NAME_KEY_VALUE_PAIR);
+ testAppender.stop();
+ }
+
+ @Test
+ void testHttpJson_receiveContent_logDebug() {
+ TestAppender testAppender = setupTestLogger(HttpJsonLoggingInterceptor.class, Level.DEBUG);
+ assertThat(echoHttpJson(ECHO_STRING)).isEqualTo(ECHO_STRING);
+ assertThat(testAppender.events.size()).isEqualTo(2);
+ // logging event for request
+ ILoggingEvent loggingEvent1 = testAppender.events.get(0);
+ assertThat(loggingEvent1.getMessage()).isEqualTo(SENDING_REQUEST_MESSAGE);
+ assertThat(loggingEvent1.getLevel()).isEqualTo(Level.DEBUG);
+ List keyValuePairs = loggingEvent1.getKeyValuePairs();
+ assertThat(keyValuePairs.size()).isEqualTo(4);
+ assertThat(keyValuePairs).contains(RPC_NAME_KEY_VALUE_PAIR);
+ assertThat(keyValuePairs).contains(REQUEST_URL_KEY_VALUE_PAIR);
+
+ for (KeyValuePair kvp : keyValuePairs) {
+ if (kvp.key.equals("request.payload")) {
+ Map payload = (Map) kvp.value;
+ assertThat(payload.get("content")).isEqualTo(ECHO_STRING);
+ assertThat(payload.get("requestId")).isNotNull();
+ assertThat(payload.get("otherRequestId")).isNotNull();
+ }
+ if (kvp.key.equals("request.headers")) {
+ Map headers = (Map) kvp.value;
+ assertThat(headers).containsKey("x-goog-api-version");
+ assertThat(headers).containsKey("x-goog-api-client");
+ }
+ }
+
+ // logging event for response
+ ILoggingEvent loggingEvent2 = testAppender.events.get(1);
+ assertThat(loggingEvent2.getMessage()).isEqualTo(RECEIVING_RESPONSE_MESSAGE);
+
+ assertThat(loggingEvent2.getLevel()).isEqualTo(Level.DEBUG);
+ List keyValuePairs2 = loggingEvent2.getKeyValuePairs();
+ assertThat(keyValuePairs2.size()).isEqualTo(4);
+ assertThat(keyValuePairs2)
+ .containsAtLeast(RESPONSE_STATUS_KEY_VALUE_PAIR_HTTP, RPC_NAME_KEY_VALUE_PAIR);
+ for (KeyValuePair kvp : keyValuePairs2) {
+ if (kvp.key.equals("response.payload")) {
+ Map payload = (Map) kvp.value;
+ assertThat(payload.get("content")).isEqualTo(ECHO_STRING);
+ assertThat(payload.get("requestId")).isNotNull();
+ assertThat(payload.get("otherRequestId")).isNotNull();
+ }
+ if (kvp.key.equals("response.headers")) {
+ Map headers = (Map) kvp.value;
+ assertThat(headers.size()).isEqualTo(11);
+ }
+ }
+ testAppender.stop();
+ }
+
+ @Test
+ void testHttpJson_receiveContent_logInfo() {
+ TestAppender testAppender = setupTestLogger(HttpJsonLoggingInterceptor.class, Level.INFO);
+ assertThat(echoHttpJson(ECHO_STRING)).isEqualTo(ECHO_STRING);
+ assertThat(testAppender.events.size()).isEqualTo(2);
+ // logging event for request
+ ILoggingEvent loggingEvent1 = testAppender.events.get(0);
+ assertThat(loggingEvent1.getMessage()).isEqualTo(SENDING_REQUEST_MESSAGE);
+ assertThat(loggingEvent1.getLevel()).isEqualTo(Level.INFO);
+ List keyValuePairs = loggingEvent1.getKeyValuePairs();
+ assertThat(keyValuePairs.size()).isEqualTo(2);
+ assertThat(keyValuePairs).contains(RPC_NAME_KEY_VALUE_PAIR);
+ assertThat(keyValuePairs).contains(REQUEST_URL_KEY_VALUE_PAIR);
+
+ // logging event for response
+ ILoggingEvent loggingEvent2 = testAppender.events.get(1);
+ assertThat(loggingEvent2.getMessage()).isEqualTo(RECEIVING_RESPONSE_MESSAGE);
+
+ assertThat(loggingEvent2.getLevel()).isEqualTo(Level.INFO);
+ List keyValuePairs2 = loggingEvent2.getKeyValuePairs();
+ assertThat(keyValuePairs2.size()).isEqualTo(2);
+ assertThat(keyValuePairs2)
+ .containsAtLeast(RESPONSE_STATUS_KEY_VALUE_PAIR_HTTP, RPC_NAME_KEY_VALUE_PAIR);
+ testAppender.stop();
+ }
+
+ private String echoGrpc(String value) {
+ EchoResponse response = grpcClient.echo(EchoRequest.newBuilder().setContent(value).build());
+ return response.getContent();
+ }
+
+ private String echoHttpJson(String value) {
+ EchoResponse response = httpjsonClient.echo(EchoRequest.newBuilder().setContent(value).build());
+ return response.getContent();
+ }
+}
diff --git a/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/logging/ITLogging1x.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/logging/ITLogging1x.java
new file mode 100644
index 0000000000..d0dec4b80d
--- /dev/null
+++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/logging/ITLogging1x.java
@@ -0,0 +1,217 @@
+/*
+ * Copyright 2025 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.showcase.v1beta1.it.logging;
+
+import static com.google.common.truth.Truth.assertThat;
+
+import ch.qos.logback.classic.Level;
+import ch.qos.logback.classic.spi.ILoggingEvent;
+import com.google.api.gax.grpc.GrpcLoggingInterceptor;
+import com.google.api.gax.httpjson.HttpJsonLoggingInterceptor;
+import com.google.common.collect.ImmutableMap;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoRequest;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.it.util.TestClientInitializer;
+import java.util.Map;
+import java.util.concurrent.TimeUnit;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+// This test needs to run with GOOGLE_SDK_JAVA_LOGGING=true
+// mvn verify -P
+// '!showcase,enable-integration-tests,loggingTestBase,slf4j1_logback '
+public class ITLogging1x {
+ private static EchoClient grpcClient;
+
+ private static EchoClient httpjsonClient;
+
+ private static final String ECHO_STRING = "echo?";
+ private static final String SERVICE_NAME = "google.showcase.v1beta1.Echo";
+ private static final String RPC_NAME = "google.showcase.v1beta1.Echo/Echo";
+ private static final String ENDPOINT = "http://localhost:7469";
+ private static final String SENDING_REQUEST_MESSAGE = "Sending request";
+ private static final String RECEIVING_RESPONSE_MESSAGE = "Received response";
+
+ private static Logger logger = LoggerFactory.getLogger(ITLogging1x.class);
+
+ private TestAppender setupTestLogger(Class> clazz, Level level) {
+ TestAppender testAppender = new TestAppender();
+ testAppender.start();
+ Logger logger = LoggerFactory.getLogger(clazz);
+ ((ch.qos.logback.classic.Logger) logger).setLevel(level);
+ ((ch.qos.logback.classic.Logger) logger).addAppender(testAppender);
+ return testAppender;
+ }
+
+ @BeforeAll
+ static void createClients() throws Exception {
+ // Create gRPC Echo Client
+ grpcClient = TestClientInitializer.createGrpcEchoClient();
+ // Create Http JSON Echo Client
+ httpjsonClient = TestClientInitializer.createHttpJsonEchoClient();
+ }
+
+ @AfterAll
+ static void destroyClients() throws InterruptedException {
+ grpcClient.close();
+ httpjsonClient.close();
+
+ grpcClient.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS);
+ httpjsonClient.awaitTermination(
+ TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS);
+ }
+
+ @Test
+ void test() {
+ assertThat(logger.isInfoEnabled()).isTrue();
+ assertThat(logger.isDebugEnabled()).isTrue();
+ }
+
+ @Test
+ void testGrpc_receiveContent_logDebug() {
+ TestAppender testAppender = setupTestLogger(GrpcLoggingInterceptor.class, Level.DEBUG);
+ assertThat(echoGrpc(ECHO_STRING)).isEqualTo(ECHO_STRING);
+
+ assertThat(testAppender.events.size()).isEqualTo(2);
+ // logging event for request
+ ILoggingEvent loggingEvent1 = testAppender.events.get(0);
+ assertThat(loggingEvent1.getMessage()).isEqualTo(SENDING_REQUEST_MESSAGE);
+ assertThat(loggingEvent1.getLevel()).isEqualTo(Level.DEBUG);
+ Map mdcPropertyMap = loggingEvent1.getMDCPropertyMap();
+ assertThat(mdcPropertyMap)
+ .containsAtLeastEntriesIn(
+ ImmutableMap.of("serviceName", SERVICE_NAME, "rpcName", RPC_NAME));
+ assertThat(mdcPropertyMap).containsKey("request.headers");
+ assertThat(mdcPropertyMap.get("request.headers")).startsWith("{\"x-goog-api-");
+
+ assertThat(mdcPropertyMap).containsKey("request.payload");
+ assertThat(mdcPropertyMap.get("request.payload"))
+ .startsWith("{\"content\":\"echo?\",\"requestId\":");
+
+ // logging event for response
+ ILoggingEvent loggingEvent2 = testAppender.events.get(1);
+ assertThat(loggingEvent2.getMessage()).isEqualTo(RECEIVING_RESPONSE_MESSAGE);
+ assertThat(loggingEvent2.getLevel()).isEqualTo(Level.DEBUG);
+ Map responseMdcPropertyMap = loggingEvent2.getMDCPropertyMap();
+ assertThat(responseMdcPropertyMap)
+ .containsAtLeastEntriesIn(
+ ImmutableMap.of(
+ "serviceName", SERVICE_NAME, "rpcName", RPC_NAME, "response.status", "OK"));
+ assertThat(responseMdcPropertyMap).containsKey("response.payload");
+ assertThat(responseMdcPropertyMap).containsKey("response.headers");
+
+ testAppender.stop();
+ }
+
+ @Test
+ void testGrpc_receiveContent_logInfo() {
+ TestAppender testAppender = setupTestLogger(GrpcLoggingInterceptor.class, Level.INFO);
+ assertThat(echoGrpc(ECHO_STRING)).isEqualTo(ECHO_STRING);
+
+ assertThat(testAppender.events.size()).isEqualTo(2);
+ // logging event for request
+ ILoggingEvent loggingEvent1 = testAppender.events.get(0);
+ assertThat(loggingEvent1.getMessage()).isEqualTo(SENDING_REQUEST_MESSAGE);
+ assertThat(loggingEvent1.getLevel()).isEqualTo(Level.INFO);
+ Map mdcPropertyMap = loggingEvent1.getMDCPropertyMap();
+ assertThat(mdcPropertyMap)
+ .containsExactlyEntriesIn(
+ ImmutableMap.of("serviceName", SERVICE_NAME, "rpcName", RPC_NAME));
+
+ // logging event for response
+ ILoggingEvent loggingEvent2 = testAppender.events.get(1);
+ assertThat(loggingEvent2.getMessage()).isEqualTo(RECEIVING_RESPONSE_MESSAGE);
+ assertThat(loggingEvent2.getLevel()).isEqualTo(Level.INFO);
+ Map responseMdcPropertyMap = loggingEvent2.getMDCPropertyMap();
+ assertThat(responseMdcPropertyMap)
+ .containsExactlyEntriesIn(
+ ImmutableMap.of(
+ "serviceName", SERVICE_NAME, "rpcName", RPC_NAME, "response.status", "OK"));
+
+ testAppender.stop();
+ }
+
+ @Test
+ void testHttpJson_receiveContent_logDebug() {
+ TestAppender testAppender = setupTestLogger(HttpJsonLoggingInterceptor.class, Level.DEBUG);
+ assertThat(echoHttpJson(ECHO_STRING)).isEqualTo(ECHO_STRING);
+ assertThat(testAppender.events.size()).isEqualTo(2);
+ // logging event for request
+ ILoggingEvent loggingEvent1 = testAppender.events.get(0);
+ assertThat(loggingEvent1.getMessage()).isEqualTo(SENDING_REQUEST_MESSAGE);
+ assertThat(loggingEvent1.getLevel()).isEqualTo(Level.DEBUG);
+ Map mdcPropertyMap = loggingEvent1.getMDCPropertyMap();
+ assertThat(mdcPropertyMap).containsEntry("rpcName", RPC_NAME);
+ assertThat(mdcPropertyMap).containsEntry("request.url", ENDPOINT);
+ assertThat(mdcPropertyMap).containsKey("request.headers");
+ assertThat(mdcPropertyMap.get("request.headers")).startsWith("{\"x-goog-api-");
+ assertThat(mdcPropertyMap).containsKey("request.payload");
+ assertThat(mdcPropertyMap.get("request.payload"))
+ .startsWith("{\"content\":\"echo?\",\"requestId\":");
+
+ // logging event for response
+ ILoggingEvent loggingEvent2 = testAppender.events.get(1);
+ assertThat(loggingEvent2.getMessage()).isEqualTo(RECEIVING_RESPONSE_MESSAGE);
+ assertThat(loggingEvent2.getLevel()).isEqualTo(Level.DEBUG);
+ Map responseMdcPropertyMap = loggingEvent2.getMDCPropertyMap();
+ assertThat(responseMdcPropertyMap)
+ .containsAtLeastEntriesIn(ImmutableMap.of("rpcName", RPC_NAME, "response.status", "200"));
+ assertThat(responseMdcPropertyMap).containsKey("response.payload");
+ assertThat(responseMdcPropertyMap).containsKey("response.headers");
+ testAppender.stop();
+ }
+
+ @Test
+ void testHttpJson_receiveContent_logInfo() {
+ TestAppender testAppender = setupTestLogger(HttpJsonLoggingInterceptor.class, Level.INFO);
+ assertThat(echoHttpJson(ECHO_STRING)).isEqualTo(ECHO_STRING);
+ assertThat(testAppender.events.size()).isEqualTo(2);
+ // logging event for request
+ ILoggingEvent loggingEvent1 = testAppender.events.get(0);
+ assertThat(loggingEvent1.getMessage()).isEqualTo(SENDING_REQUEST_MESSAGE);
+ assertThat(loggingEvent1.getLevel()).isEqualTo(Level.INFO);
+ Map mdcPropertyMap = loggingEvent1.getMDCPropertyMap();
+ assertThat(mdcPropertyMap)
+ .containsExactlyEntriesIn(
+ ImmutableMap.of(
+ "rpcName", RPC_NAME,
+ "request.url", ENDPOINT));
+
+ // logging event for response
+ ILoggingEvent loggingEvent2 = testAppender.events.get(1);
+ assertThat(loggingEvent2.getMessage()).isEqualTo(RECEIVING_RESPONSE_MESSAGE);
+ assertThat(loggingEvent2.getLevel()).isEqualTo(Level.INFO);
+ Map responseMdcPropertyMap = loggingEvent2.getMDCPropertyMap();
+ assertThat(responseMdcPropertyMap)
+ .containsExactlyEntriesIn(ImmutableMap.of("rpcName", RPC_NAME, "response.status", "200"));
+ testAppender.stop();
+ }
+
+ private String echoGrpc(String value) {
+ EchoResponse response = grpcClient.echo(EchoRequest.newBuilder().setContent(value).build());
+ return response.getContent();
+ }
+
+ private String echoHttpJson(String value) {
+ EchoResponse response = httpjsonClient.echo(EchoRequest.newBuilder().setContent(value).build());
+ return response.getContent();
+ }
+}
diff --git a/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/logging/ITLoggingDisabled.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/logging/ITLoggingDisabled.java
new file mode 100644
index 0000000000..16c6acb0a6
--- /dev/null
+++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/logging/ITLoggingDisabled.java
@@ -0,0 +1,78 @@
+/*
+ * Copyright 2025 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.showcase.v1beta1.it.logging;
+
+import static com.google.common.truth.Truth.assertThat;
+
+import ch.qos.logback.classic.Level;
+import ch.qos.logback.classic.spi.ILoggingEvent;
+import ch.qos.logback.core.read.ListAppender;
+import com.google.api.gax.grpc.GrpcLoggingInterceptor;
+import com.google.showcase.v1beta1.EchoClient;
+import com.google.showcase.v1beta1.EchoRequest;
+import com.google.showcase.v1beta1.EchoResponse;
+import com.google.showcase.v1beta1.it.util.TestClientInitializer;
+import java.util.concurrent.TimeUnit;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
+import org.slf4j.LoggerFactory;
+
+// mvn verify -P '!showcase,enable-integration-tests,loggingTestBase,disabledLogging'
+public class ITLoggingDisabled {
+
+ private static EchoClient grpcClient;
+ private static final String ECHO_STRING = "echo?";
+
+ private TestAppender setupTestLogger(Class> clazz) {
+ TestAppender testAppender = new TestAppender();
+ testAppender.start();
+ ListAppender listAppender = new ListAppender<>();
+ listAppender.start();
+ org.slf4j.Logger logger = LoggerFactory.getLogger(clazz);
+ ((ch.qos.logback.classic.Logger) logger).setLevel(Level.DEBUG);
+ ((ch.qos.logback.classic.Logger) logger).addAppender(testAppender);
+ return testAppender;
+ }
+
+ @BeforeAll
+ static void createClients() throws Exception {
+ // Create gRPC Echo Client
+ grpcClient = TestClientInitializer.createGrpcEchoClient();
+ }
+
+ @AfterAll
+ static void destroyClients() throws InterruptedException {
+ grpcClient.close();
+
+ grpcClient.awaitTermination(TestClientInitializer.AWAIT_TERMINATION_SECONDS, TimeUnit.SECONDS);
+ }
+
+ // only run when GOOGLE_SDK_JAVA_LOGGING!=true
+ @Test
+ void testloggingDisabled() {
+ TestAppender testAppender = setupTestLogger(GrpcLoggingInterceptor.class);
+ assertThat(echoGrpc(ECHO_STRING)).isEqualTo(ECHO_STRING);
+
+ assertThat(testAppender.events.size()).isEqualTo(0);
+ }
+
+ private String echoGrpc(String value) {
+ EchoResponse response = grpcClient.echo(EchoRequest.newBuilder().setContent(value).build());
+ return response.getContent();
+ }
+}
diff --git a/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/logging/TestAppender.java b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/logging/TestAppender.java
new file mode 100644
index 0000000000..92a6996936
--- /dev/null
+++ b/java-showcase/gapic-showcase/src/test/java/com/google/showcase/v1beta1/it/logging/TestAppender.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2025 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.showcase.v1beta1.it.logging;
+
+import ch.qos.logback.classic.spi.ILoggingEvent;
+import ch.qos.logback.core.AppenderBase;
+import java.util.ArrayList;
+import java.util.List;
+
+/** Logback appender used to set up tests. */
+public class TestAppender extends AppenderBase {
+ public List events = new ArrayList<>();
+
+ @Override
+ protected void append(ILoggingEvent eventObject) {
+ // triggering Logback to capture the current MDC context and store it with the log event
+ // the default ListAppender does not capture MDC contents
+ eventObject.getMDCPropertyMap();
+
+ events.add(eventObject);
+ }
+
+ public void clearEvents() {
+ events.clear();
+ }
+}