Show / Hide Table of Contents

Class RetryInfo

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.

Inheritance
System.Object
RetryInfo
Implements
IMessage<RetryInfo>
IMessage
System.IEquatable<RetryInfo>
IDeepCloneable<RetryInfo>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Rpc
Assembly: Google.Api.CommonProtos.dll
Syntax
public sealed class RetryInfo : IMessage<RetryInfo>, IMessage, IEquatable<RetryInfo>, IDeepCloneable<RetryInfo>

Constructors

RetryInfo()

Declaration
public RetryInfo()

RetryInfo(RetryInfo)

Declaration
public RetryInfo(RetryInfo other)
Parameters
Type Name Description
RetryInfo other

Fields

RetryDelayFieldNumber

Field number for the "retry_delay" field.

Declaration
public const int RetryDelayFieldNumber = 1
Field Value
Type Description
System.Int32

Properties

Descriptor

Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Type Description
MessageDescriptor

Parser

Declaration
public static MessageParser<RetryInfo> Parser { get; }
Property Value
Type Description
MessageParser<RetryInfo>

RetryDelay

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

Declaration
public Duration RetryDelay { get; set; }
Property Value
Type Description
Duration

Methods

CalculateSize()

Declaration
public int CalculateSize()
Returns
Type Description
System.Int32
Implements
IMessage.CalculateSize()

Clone()

Declaration
public RetryInfo Clone()
Returns
Type Description
RetryInfo
Implements
IDeepCloneable<T>.Clone()

Equals(RetryInfo)

Declaration
public bool Equals(RetryInfo other)
Parameters
Type Name Description
RetryInfo other
Returns
Type Description
System.Boolean
Implements
System.IEquatable<T>.Equals(T)

Equals(Object)

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
System.Object other
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()

MergeFrom(CodedInputStream)

Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type Name Description
CodedInputStream input
Implements
IMessage.MergeFrom(CodedInputStream)

MergeFrom(RetryInfo)

Declaration
public void MergeFrom(RetryInfo other)
Parameters
Type Name Description
RetryInfo other
Implements
IMessage<T>.MergeFrom(T)

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

WriteTo(CodedOutputStream)

Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type Name Description
CodedOutputStream output
Implements
IMessage.WriteTo(CodedOutputStream)

Explicit Interface Implementations

IMessage.Descriptor

Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Type Description
MessageDescriptor
Implements
IMessage.Descriptor
Back to top