From adbd905e9c8b86ee08358c0012d40206baafcded Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Thu, 9 Jul 2020 19:18:25 -0700 Subject: [PATCH] fix: migrate monitoring/dashboard/v1 to grpc_service_config PiperOrigin-RevId: 320447395 Source-Author: Google APIs Source-Date: Thu Jul 9 12:15:09 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: ca88164f0a037c0b8ed88c4a69e0b94fddbf797a Source-Link: https://github.com/googleapis/googleapis/commit/ca88164f0a037c0b8ed88c4a69e0b94fddbf797a --- .../stub/DashboardsServiceStubSettings.java | 50 ++++++++++++------- synth.metadata | 6 +-- 2 files changed, 34 insertions(+), 22 deletions(-) diff --git a/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.java b/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.java index dba1fc2b..1615f17a 100644 --- a/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.java +++ b/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.java @@ -285,11 +285,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())); + StatusCode.Code.UNAVAILABLE, StatusCode.Code.UNKNOWN))); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -300,15 +302,25 @@ public static class Builder extends StubSettings.Builder