@@ -482,8 +482,10 @@ function mergeRetryOptions(retry, overrides) {
482482 * "interfaces": {
483483 * "google.fake.v1.ServiceName": {
484484 * "retry_codes": {
485- * "idempotent": ["UNAVAILABLE", "DEADLINE_EXCEEDED"],
486- * "non_idempotent": []
485+ * "retry_codes_def": {
486+ * "idempotent": ["UNAVAILABLE", "DEADLINE_EXCEEDED"],
487+ * "non_idempotent": []
488+ * }
487489 * },
488490 * "retry_params": {
489491 * "default": {
@@ -554,7 +556,7 @@ exports.constructSettings = function constructSettings(
554556 var jsName = methodName [ 0 ] . toLowerCase ( ) + methodName . slice ( 1 ) ;
555557
556558 var retry = constructRetry ( methodConfig ,
557- serviceConfig . retry_codes ,
559+ serviceConfig . retry_codes . retry_codes_def ,
558560 serviceConfig . retry_params ,
559561 retryNames ) ;
560562 var bundlingConfig = methodConfig . bundling ;
@@ -569,9 +571,13 @@ exports.constructSettings = function constructSettings(
569571 timeout = overridingMethod . timeout_millis ;
570572 }
571573 }
574+ var overridesRetryCodes = null ;
575+ if ( overrides . retry_params ) {
576+ overridesRetryCodes = overrides . retry_codes . retry_codes_def ;
577+ }
572578 retry = mergeRetryOptions (
573579 retry ,
574- constructRetry ( overridingMethod , overrides . retry_codes ,
580+ constructRetry ( overridingMethod , overridesRetryCodes ,
575581 overrides . retry_params , retryNames ) ) ;
576582 }
577583
0 commit comments