From 30cb93339daf94fd3db63ed91b1368c72d832eba Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 23 Jun 2020 14:50:12 -0700 Subject: [PATCH] fix: migrate to grpc_service_config (#183) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/a3e09c0b-006d-4d98-8e96-744af862718e/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 317698083 Source-Link: https://github.com/googleapis/googleapis/commit/e2022bea2cd3273b0e42e0ac034d08c16aaa0ea0 --- README.md | 2 +- .../v1/stub/IamCredentialsStubSettings.java | 32 ++++++++++--------- synth.metadata | 6 ++-- 3 files changed, 21 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 3aa5fdf0..6e6f8ef3 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 7.0.0 + 7.0.1 pom import diff --git a/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java b/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java index 640c0c2d..5ed70abe 100644 --- a/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java +++ b/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java @@ -208,11 +208,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(); } @@ -226,12 +226,14 @@ public static class Builder extends StubSettings.Builder