From e30f8c5ac8e0892e07c404f478d410028881188c Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 30 Jun 2020 18:33:25 -0700 Subject: [PATCH 1/2] fix: migrate language/v1beta2 to grpc_service_config PiperOrigin-RevId: 319092844 Source-Author: Google APIs Source-Date: Tue Jun 30 13:55:47 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: f6d35b4b58a6810ad2e93cdcaf9b4d943f60150e Source-Link: https://github.com/googleapis/googleapis/commit/f6d35b4b58a6810ad2e93cdcaf9b4d943f60150e --- .../stub/LanguageServiceStubSettings.java | 38 ++++++++++--------- synth.metadata | 10 ++--- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/LanguageServiceStubSettings.java b/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/LanguageServiceStubSettings.java index f94ada7a..8f254fdf 100644 --- a/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/LanguageServiceStubSettings.java +++ b/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/LanguageServiceStubSettings.java @@ -238,11 +238,11 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "idempotent", + "retry_policy_1_codes", ImmutableSet.copyOf( Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -256,12 +256,14 @@ public static class Builder extends StubSettings.Builder Date: Tue, 30 Jun 2020 18:33:25 -0700 Subject: [PATCH 2/2] fix: migrate language/v1 to grpc_service_config PiperOrigin-RevId: 319092854 Source-Author: Google APIs Source-Date: Tue Jun 30 13:55:50 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 83a83a43ded3f0bfc8a5b0aa13be10a210ef319d Source-Link: https://github.com/googleapis/googleapis/commit/83a83a43ded3f0bfc8a5b0aa13be10a210ef319d --- .../v1/stub/LanguageServiceStubSettings.java | 36 ++++++++++--------- synth.metadata | 8 ++--- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java b/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java index 6907295f..35f60d3d 100644 --- a/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java +++ b/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/LanguageServiceStubSettings.java @@ -238,11 +238,11 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "idempotent", + "retry_policy_1_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -256,12 +256,14 @@ public static class Builder extends StubSettings.Builder