Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

Commit ba0a626

Browse files
feat: add RPC retry information for MacSign, MacVerify, and GenerateRandomBytes (#636)
* feat: add RPC retry information for MacSign, MacVerify, and GenerateRandomBytes Committer: @bdhess PiperOrigin-RevId: 399925901 Source-Link: googleapis/googleapis@ae7e399 Source-Link: https://github.com/googleapis/googleapis-gen/commit/3a8128528ceddba0c1775401eef57ecb582db350 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2E4MTI4NTI4Y2VkZGJhMGMxNzc1NDAxZWVmNTdlY2I1ODJkYjM1MCJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent c271e93 commit ba0a626

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,6 @@ public static class Builder
761761
StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED)));
762762
definitions.put(
763763
"no_retry_0_codes", ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList()));
764-
definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList()));
765764
RETRYABLE_CODE_DEFINITIONS = definitions.build();
766765
}
767766

@@ -789,8 +788,6 @@ public static class Builder
789788
.setTotalTimeout(Duration.ofMillis(60000L))
790789
.build();
791790
definitions.put("no_retry_0_params", settings);
792-
settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build();
793-
definitions.put("no_retry_params", settings);
794791
RETRY_PARAM_DEFINITIONS = definitions.build();
795792
}
796793

@@ -1064,18 +1061,18 @@ private static Builder initDefaults(Builder builder) {
10641061

10651062
builder
10661063
.macSignSettings()
1067-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
1068-
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
1064+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
1065+
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
10691066

10701067
builder
10711068
.macVerifySettings()
1072-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
1073-
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
1069+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
1070+
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
10741071

10751072
builder
10761073
.generateRandomBytesSettings()
1077-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
1078-
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
1074+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
1075+
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
10791076

10801077
builder
10811078
.setIamPolicySettings()

0 commit comments

Comments
 (0)