From 8fd30085fef6a2a3f30c6f571bd8848eaea8e81d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 25 Jun 2020 23:43:11 -0700 Subject: [PATCH] fix: migrate to grpc_service_config (#194) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/ed269a85-39ea-4dd1-9c6f-2c80320cbb34/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 318180691 Source-Link: https://github.com/googleapis/googleapis/commit/e569fc5ac999ed8b466e04253320c16d93491d01 --- README.md | 2 +- .../stub/BudgetServiceStubSettings.java | 44 ++++++++++++------- synth.metadata | 6 +-- 3 files changed, 32 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 7eb6e154..0a4c5b2a 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,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-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java index 15e11524..f3faef6a 100644 --- a/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java +++ b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java @@ -276,11 +276,13 @@ 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())); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -294,12 +296,22 @@ public static class Builder extends StubSettings.Builder