public sealed class RetryInfo : IMessage<RetryInfo>, IEquatable<RetryInfo>, IDeepCloneable<RetryInfo>, IBufferMessage, IMessage
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 retries have been reached or a maximum retry delay cap has been
reached.
Implements
IMessage RetryInfo , IEquatable RetryInfo , IDeepCloneable RetryInfo , IBufferMessage , IMessageNamespace
Google.RpcAssembly
Google.Api.CommonProtos.dll
Constructors
RetryInfo()
public RetryInfo()
RetryInfo(RetryInfo)
public RetryInfo(RetryInfo other)
Fields
RetryDelayFieldNumber
public
const
int
RetryDelayFieldNumber
=
1
Field number for the "retry_delay" field.
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Parser
public static MessageParser<RetryInfo> Parser { get; }
RetryDelay
public Duration RetryDelay { get; set; }
Clients should wait at least this long between retrying the same request.
Methods
CalculateSize()
public int CalculateSize()
Clone()
public RetryInfo Clone()
Equals(RetryInfo)
public bool Equals(RetryInfo other)
Equals(object)
public override bool Equals(object other)
GetHashCode()
public override int GetHashCode()
MergeFrom(CodedInputStream)
public void MergeFrom(CodedInputStream input)
MergeFrom(RetryInfo)
public void MergeFrom(RetryInfo other)
ToString()
public override string ToString()
WriteTo(CodedOutputStream)
public void WriteTo(CodedOutputStream output)