6767import com .google .longrunning .Operation ;
6868import com .google .protobuf .Empty ;
6969import java .io .IOException ;
70+ import java .time .Duration ;
7071import java .util .List ;
7172import javax .annotation .Generated ;
72- import org .threeten .bp .Duration ;
7373
7474// AUTO-GENERATED DOCUMENTATION AND CLASS.
7575/**
138138 * RetrySettings.newBuilder()
139139 * .setInitialRetryDelayDuration(Duration.ofMillis(500))
140140 * .setRetryDelayMultiplier(1.5)
141- * .setMaxRetryDelay (Duration.ofMillis(5000))
141+ * .setMaxRetryDelayDuration (Duration.ofMillis(5000))
142142 * .setTotalTimeoutDuration(Duration.ofHours(24))
143143 * .build());
144144 * datastoreAdminSettingsBuilder
@@ -449,21 +449,21 @@ public static class Builder extends StubSettings.Builder<DatastoreAdminStubSetti
449449 RetrySettings settings = null ;
450450 settings =
451451 RetrySettings .newBuilder ()
452- .setInitialRpcTimeout (Duration .ofMillis (60000L ))
452+ .setInitialRpcTimeoutDuration (Duration .ofMillis (60000L ))
453453 .setRpcTimeoutMultiplier (1.0 )
454- .setMaxRpcTimeout (Duration .ofMillis (60000L ))
455- .setTotalTimeout (Duration .ofMillis (60000L ))
454+ .setMaxRpcTimeoutDuration (Duration .ofMillis (60000L ))
455+ .setTotalTimeoutDuration (Duration .ofMillis (60000L ))
456456 .build ();
457457 definitions .put ("no_retry_0_params" , settings );
458458 settings =
459459 RetrySettings .newBuilder ()
460- .setInitialRetryDelay (Duration .ofMillis (100L ))
460+ .setInitialRetryDelayDuration (Duration .ofMillis (100L ))
461461 .setRetryDelayMultiplier (1.3 )
462- .setMaxRetryDelay (Duration .ofMillis (60000L ))
463- .setInitialRpcTimeout (Duration .ofMillis (60000L ))
462+ .setMaxRetryDelayDuration (Duration .ofMillis (60000L ))
463+ .setInitialRpcTimeoutDuration (Duration .ofMillis (60000L ))
464464 .setRpcTimeoutMultiplier (1.0 )
465- .setMaxRpcTimeout (Duration .ofMillis (60000L ))
466- .setTotalTimeout (Duration .ofMillis (60000L ))
465+ .setMaxRpcTimeoutDuration (Duration .ofMillis (60000L ))
466+ .setTotalTimeoutDuration (Duration .ofMillis (60000L ))
467467 .build ();
468468 definitions .put ("retry_policy_1_params" , settings );
469469 RETRY_PARAM_DEFINITIONS = definitions .build ();
@@ -592,13 +592,13 @@ private static Builder initDefaults(Builder builder) {
592592 .setPollingAlgorithm (
593593 OperationTimedPollAlgorithm .create (
594594 RetrySettings .newBuilder ()
595- .setInitialRetryDelay (Duration .ofMillis (5000L ))
595+ .setInitialRetryDelayDuration (Duration .ofMillis (5000L ))
596596 .setRetryDelayMultiplier (1.5 )
597- .setMaxRetryDelay (Duration .ofMillis (45000L ))
598- .setInitialRpcTimeout (Duration .ZERO )
597+ .setMaxRetryDelayDuration (Duration .ofMillis (45000L ))
598+ .setInitialRpcTimeoutDuration (Duration .ZERO )
599599 .setRpcTimeoutMultiplier (1.0 )
600- .setMaxRpcTimeout (Duration .ZERO )
601- .setTotalTimeout (Duration .ofMillis (300000L ))
600+ .setMaxRpcTimeoutDuration (Duration .ZERO )
601+ .setTotalTimeoutDuration (Duration .ofMillis (300000L ))
602602 .build ()));
603603
604604 builder
@@ -616,13 +616,13 @@ private static Builder initDefaults(Builder builder) {
616616 .setPollingAlgorithm (
617617 OperationTimedPollAlgorithm .create (
618618 RetrySettings .newBuilder ()
619- .setInitialRetryDelay (Duration .ofMillis (5000L ))
619+ .setInitialRetryDelayDuration (Duration .ofMillis (5000L ))
620620 .setRetryDelayMultiplier (1.5 )
621- .setMaxRetryDelay (Duration .ofMillis (45000L ))
622- .setInitialRpcTimeout (Duration .ZERO )
621+ .setMaxRetryDelayDuration (Duration .ofMillis (45000L ))
622+ .setInitialRpcTimeoutDuration (Duration .ZERO )
623623 .setRpcTimeoutMultiplier (1.0 )
624- .setMaxRpcTimeout (Duration .ZERO )
625- .setTotalTimeout (Duration .ofMillis (300000L ))
624+ .setMaxRpcTimeoutDuration (Duration .ZERO )
625+ .setTotalTimeoutDuration (Duration .ofMillis (300000L ))
626626 .build ()));
627627
628628 builder
@@ -639,13 +639,13 @@ private static Builder initDefaults(Builder builder) {
639639 .setPollingAlgorithm (
640640 OperationTimedPollAlgorithm .create (
641641 RetrySettings .newBuilder ()
642- .setInitialRetryDelay (Duration .ofMillis (5000L ))
642+ .setInitialRetryDelayDuration (Duration .ofMillis (5000L ))
643643 .setRetryDelayMultiplier (1.5 )
644- .setMaxRetryDelay (Duration .ofMillis (45000L ))
645- .setInitialRpcTimeout (Duration .ZERO )
644+ .setMaxRetryDelayDuration (Duration .ofMillis (45000L ))
645+ .setInitialRpcTimeoutDuration (Duration .ZERO )
646646 .setRpcTimeoutMultiplier (1.0 )
647- .setMaxRpcTimeout (Duration .ZERO )
648- .setTotalTimeout (Duration .ofMillis (300000L ))
647+ .setMaxRpcTimeoutDuration (Duration .ZERO )
648+ .setTotalTimeoutDuration (Duration .ofMillis (300000L ))
649649 .build ()));
650650
651651 builder
@@ -662,13 +662,13 @@ private static Builder initDefaults(Builder builder) {
662662 .setPollingAlgorithm (
663663 OperationTimedPollAlgorithm .create (
664664 RetrySettings .newBuilder ()
665- .setInitialRetryDelay (Duration .ofMillis (5000L ))
665+ .setInitialRetryDelayDuration (Duration .ofMillis (5000L ))
666666 .setRetryDelayMultiplier (1.5 )
667- .setMaxRetryDelay (Duration .ofMillis (45000L ))
668- .setInitialRpcTimeout (Duration .ZERO )
667+ .setMaxRetryDelayDuration (Duration .ofMillis (45000L ))
668+ .setInitialRpcTimeoutDuration (Duration .ZERO )
669669 .setRpcTimeoutMultiplier (1.0 )
670- .setMaxRpcTimeout (Duration .ZERO )
671- .setTotalTimeout (Duration .ofMillis (300000L ))
670+ .setMaxRpcTimeoutDuration (Duration .ZERO )
671+ .setTotalTimeoutDuration (Duration .ofMillis (300000L ))
672672 .build ()));
673673
674674 return builder ;
0 commit comments