From a193fccd0741035a43681139dfb072b9882a0643 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 8 Nov 2022 17:08:23 +0000 Subject: [PATCH] chore: Set `rest_numeric_enums = False` for all gapic rules explicitly (#243) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 485623855 Source-Link: https://togithub.com/googleapis/googleapis/commit/807125e7953e32535710924fe4bf0362ac93754d Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/c4ddd6d651da69658a4762c5eafff5cd8f0e25c5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzRkZGQ2ZDY1MWRhNjk2NThhNDc2MmM1ZWFmZmY1Y2Q4ZjBlMjVjNSJ9 --- .../google/api/servicecontrol/v1/QuotaControllerClient.java | 5 +---- .../api/servicecontrol/v1/ServiceControllerClient.java | 5 +---- .../api/servicecontrol/v2/ServiceControllerClient.java | 5 +---- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerClient.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerClient.java index bea89947c98b..d53cba502710 100644 --- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerClient.java +++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/QuotaControllerClient.java @@ -118,10 +118,7 @@ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * QuotaControllerSettings quotaControllerSettings = - * QuotaControllerSettings.newBuilder() - * .setTransportChannelProvider( - * QuotaControllerSettings.defaultHttpJsonTransportProviderBuilder().build()) - * .build(); + * QuotaControllerSettings.newHttpJsonBuilder().build(); * QuotaControllerClient quotaControllerClient = * QuotaControllerClient.create(quotaControllerSettings); * } diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerClient.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerClient.java index 8a28abaae88e..72e426200ca7 100644 --- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerClient.java +++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/ServiceControllerClient.java @@ -118,10 +118,7 @@ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ServiceControllerSettings serviceControllerSettings = - * ServiceControllerSettings.newBuilder() - * .setTransportChannelProvider( - * ServiceControllerSettings.defaultHttpJsonTransportProviderBuilder().build()) - * .build(); + * ServiceControllerSettings.newHttpJsonBuilder().build(); * ServiceControllerClient serviceControllerClient = * ServiceControllerClient.create(serviceControllerSettings); * } diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerClient.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerClient.java index f5f5f1c72dc6..139eb29b660c 100644 --- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerClient.java +++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/ServiceControllerClient.java @@ -123,10 +123,7 @@ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * ServiceControllerSettings serviceControllerSettings = - * ServiceControllerSettings.newBuilder() - * .setTransportChannelProvider( - * ServiceControllerSettings.defaultHttpJsonTransportProviderBuilder().build()) - * .build(); + * ServiceControllerSettings.newHttpJsonBuilder().build(); * ServiceControllerClient serviceControllerClient = * ServiceControllerClient.create(serviceControllerSettings); * }