Returns the retry predicate with the conditions specified for retrying.
FromErrorCodes(params int[])
public static RetryPredicate FromErrorCodes(params int[] errorCodes)
Returns a predicate which will retry on the specified HTTP error codes.
Note that only these error codes will be retried; the default error codes are not used by the returned predicate.
[[["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\u003eThe \u003ccode\u003eRetryPredicate\u003c/code\u003e class in the Google Cloud Storage v1 API defines conditions for retrying failed operations, and it is immutable.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eRetryPredicate\u003c/code\u003e is 4.11.0, with documentation available for versions ranging from 3.4.0 to 4.11.0, but the content provided is for version 4.7.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRetryPredicate.Never\u003c/code\u003e ensures that operations will not be retried upon failure.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRetryPredicate.RetriableIdempotentErrors\u003c/code\u003e defines the default error codes for automatic retries.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRetryPredicate\u003c/code\u003e can be customized using \u003ccode\u003eFromErrorCodePredicate\u003c/code\u003e or \u003ccode\u003eFromErrorCodes\u003c/code\u003e to define the retry conditions based on HTTP error codes.\u003c/p\u003e\n"]]],[],null,[]]