Total attempts allowed, including the first.
Optionalpolicy: Partial<RetryPolicy>Decide if a call should be retried. Returns true if the error is retryable, call is idempotent, and attempts remain.
Optionalidempotent: booleanCompute backoff duration in seconds for the given attempt number.
Automatic retry for idempotent methods.