public sealed class GrpcRoute.Types.RetryPolicy : IMessage<GrpcRoute.Types.RetryPolicy>, IEquatable<GrpcRoute.Types.RetryPolicy>, IDeepCloneable<GrpcRoute.Types.RetryPolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the Network Services v1 API class GrpcRoute.Types.RetryPolicy.
The specifications for retries.
Specifies one or more conditions for which this retry rule applies. Valid
values are:
public RepeatedField<string> RetryConditions { get; }
connect-failure: Router will retry on failures connecting to Backend
Services, for example due to connection timeouts.
refused-stream: Router will retry if the backend service resets the
stream
with a REFUSED_STREAM error code. This reset type indicates that it is
safe to retry.
cancelled: Router will retry if the gRPC status code in the response
header
is set to cancelled
deadline-exceeded: Router will retry if the gRPC status code in the
response
header is set to deadline-exceeded
resource-exhausted: Router will retry if the gRPC status code in the
response header is set to resource-exhausted
unavailable: Router will retry if the gRPC status code in the response
header is set to unavailable
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation is for the \u003ccode\u003eGrpcRoute.Types.RetryPolicy\u003c/code\u003e class within the Google Cloud Network Services v1 API, specifically version 1.0.0 (latest).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGrpcRoute.Types.RetryPolicy\u003c/code\u003e class defines the specifications for retries in gRPC communications and implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides two constructors: a default \u003ccode\u003eRetryPolicy()\u003c/code\u003e constructor and a constructor that takes another \u003ccode\u003eGrpcRoute.Types.RetryPolicy\u003c/code\u003e object as an argument for copying.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNumRetries\u003c/code\u003e property determines the allowed number of retries, defaulting to 1 if not set, and \u003ccode\u003eRetryConditions\u003c/code\u003e specifies the conditions under which a retry is allowed.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRetryConditions\u003c/code\u003e can include various gRPC error statuses such as \u003ccode\u003econnect-failure\u003c/code\u003e, \u003ccode\u003erefused-stream\u003c/code\u003e, \u003ccode\u003ecancelled\u003c/code\u003e, \u003ccode\u003edeadline-exceeded\u003c/code\u003e, \u003ccode\u003eresource-exhausted\u003c/code\u003e, and \u003ccode\u003eunavailable\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]