attempts = $attempts; } /** * @return RetryAttempt[] */ public function getAttempts() { return $this->attempts; } /** * Output only. The pattern of how the wait time of the retry attempt is * calculated. * * Accepted values: BACKOFF_MODE_UNSPECIFIED, BACKOFF_MODE_LINEAR, * BACKOFF_MODE_EXPONENTIAL * * @param self::BACKOFF_MODE_* $backoffMode */ public function setBackoffMode($backoffMode) { $this->backoffMode = $backoffMode; } /** * @return self::BACKOFF_MODE_* */ public function getBackoffMode() { return $this->backoffMode; } /** * Output only. The number of attempts that have been made. * * @param string $totalAttempts */ public function setTotalAttempts($totalAttempts) { $this->totalAttempts = $totalAttempts; } /** * @return string */ public function getTotalAttempts() { return $this->totalAttempts; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(RetryPhase::class, 'Google_Service_CloudDeploy_RetryPhase');