class RetryInfo extends Message

Describes when the clients can retry a failed request. Clients could ignore the recommendation here or retry when this information is missing from error responses.

It's always recommended that clients should use exponential backoff when retrying. Clients should wait until retry_delay amount of time has passed since receiving the error response before retrying. If retrying requests also fail, clients should use an exponential backoff scheme to gradually increase the delay between retries based on retry_delay, until either a maximum number of retires have been reached or a maximum retry delay cap has been reached.

Generated from protobuf message google.rpc.RetryInfo

Methods

__construct()

No description

Duration
getRetryDelay()

Clients should wait at least this long between retrying the same request.

$this
setRetryDelay(Duration $var)

Clients should wait at least this long between retrying the same request.

Details

at line 35
__construct()

at line 46
Duration getRetryDelay()

Clients should wait at least this long between retrying the same request.

Generated from protobuf field .google.protobuf.Duration retry_delay = 1;

Return Value

Duration

at line 58
$this setRetryDelay(Duration $var)

Clients should wait at least this long between retrying the same request.

Generated from protobuf field .google.protobuf.Duration retry_delay = 1;

Parameters

Duration $var

Return Value

$this