Merges a caller's partial retry setting over the built-in default policy.
false disables retries entirely (null); undefined and true return
a copy of the defaults; a partial object fills only the fields it sets,
with undefined-valued fields dropped so they cannot shadow a default.
The returned RetryPolicy is always complete, so the retry loop
never branches on missing fields.
Merges a caller's partial retry setting over the built-in default policy.
falsedisables retries entirely (null);undefinedandtruereturn a copy of the defaults; a partial object fills only the fields it sets, withundefined-valued fields dropped so they cannot shadow a default. The returned RetryPolicy is always complete, so the retry loop never branches on missing fields.