public sealed class Pipeline.Types.RetryPolicy : IMessage<Pipeline.Types.RetryPolicy>, IEquatable<Pipeline.Types.RetryPolicy>, IDeepCloneable<Pipeline.Types.RetryPolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the Eventarc v1 API class Pipeline.Types.RetryPolicy.
The retry policy configuration for the Pipeline. The pipeline
exponentially backs off in case the destination is non responsive or
returns a retryable error code. The default semantics are as follows:
The backoff starts with a 5 second delay and doubles the
delay after each failed attempt (10 seconds, 20 seconds, 40 seconds, etc.).
The delay is capped at 60 seconds by default.
Please note that if you set the min_retry_delay and max_retry_delay fields
to the same value this will make the duration between retries constant.
[[["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 latest version of the \u003ccode\u003ePipeline.Types.RetryPolicy\u003c/code\u003e class is 2.6.0, with several previous versions available, from 2.5.0 down to 1.0.0, accessible in the documentation.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePipeline.Types.RetryPolicy\u003c/code\u003e is a class within the Eventarc v1 API that manages the retry policy configuration for a pipeline, implementing interfaces like \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 retry policy configuration, by default, employs exponential backoff with an initial 5-second delay, doubling the delay with each failed attempt, and capped at 60 seconds, but this can be customized.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRetryPolicy\u003c/code\u003e class has properties to set the \u003ccode\u003eMaxAttempts\u003c/code\u003e, \u003ccode\u003eMaxRetryDelay\u003c/code\u003e, and \u003ccode\u003eMinRetryDelay\u003c/code\u003e, allowing you to control the maximum number of retries, as well as the maximum and minimum wait times between retry attempts, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors for the \u003ccode\u003eRetryPolicy\u003c/code\u003e class, the first being a basic constructor, while the other takes a \u003ccode\u003ePipeline.Types.RetryPolicy\u003c/code\u003e object as a parameter, that are used to instantiate it.\u003c/p\u003e\n"]]],[],null,["# Eventarc v1 API - Class Pipeline.Types.RetryPolicy (2.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.0 (latest)](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.Pipeline.Types.RetryPolicy)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.5.0/Google.Cloud.Eventarc.V1.Pipeline.Types.RetryPolicy)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.4.0/Google.Cloud.Eventarc.V1.Pipeline.Types.RetryPolicy)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.3.0/Google.Cloud.Eventarc.V1.Pipeline.Types.RetryPolicy)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.2.0/Google.Cloud.Eventarc.V1.Pipeline.Types.RetryPolicy)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.1.0/Google.Cloud.Eventarc.V1.Pipeline.Types.RetryPolicy)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/2.0.0/Google.Cloud.Eventarc.V1.Pipeline.Types.RetryPolicy)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/1.3.0/Google.Cloud.Eventarc.V1.Pipeline.Types.RetryPolicy)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/1.2.0/Google.Cloud.Eventarc.V1.Pipeline.Types.RetryPolicy)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/1.1.0/Google.Cloud.Eventarc.V1.Pipeline.Types.RetryPolicy)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/1.0.0/Google.Cloud.Eventarc.V1.Pipeline.Types.RetryPolicy) \n\n public sealed class Pipeline.Types.RetryPolicy : IMessage\u003cPipeline.Types.RetryPolicy\u003e, IEquatable\u003cPipeline.Types.RetryPolicy\u003e, IDeepCloneable\u003cPipeline.Types.RetryPolicy\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Eventarc v1 API class Pipeline.Types.RetryPolicy.\n\nThe retry policy configuration for the Pipeline. The pipeline\nexponentially backs off in case the destination is non responsive or\nreturns a retryable error code. The default semantics are as follows:\nThe backoff starts with a 5 second delay and doubles the\ndelay after each failed attempt (10 seconds, 20 seconds, 40 seconds, etc.).\nThe delay is capped at 60 seconds by default.\nPlease note that if you set the min_retry_delay and max_retry_delay fields\nto the same value this will make the duration between retries constant. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Pipeline.Types.RetryPolicy \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Pipeline](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.Pipeline)[Types](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.Pipeline.Types)[RetryPolicy](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.Pipeline.Types.RetryPolicy), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Pipeline](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.Pipeline)[Types](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.Pipeline.Types)[RetryPolicy](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.Pipeline.Types.RetryPolicy), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Pipeline](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.Pipeline)[Types](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.Pipeline.Types)[RetryPolicy](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1.Pipeline.Types.RetryPolicy), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Eventarc.V1](/dotnet/docs/reference/Google.Cloud.Eventarc.V1/latest/Google.Cloud.Eventarc.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Eventarc.V1.dll\n\nConstructors\n------------\n\n### RetryPolicy()\n\n public RetryPolicy()\n\n### RetryPolicy(RetryPolicy)\n\n public RetryPolicy(Pipeline.Types.RetryPolicy other)\n\nProperties\n----------\n\n### MaxAttempts\n\n public int MaxAttempts { get; set; }\n\nOptional. The maximum number of delivery attempts for any message. The\nvalue must be between 1 and 100. The default value for this field is 5.\n\n### MaxRetryDelay\n\n public Duration MaxRetryDelay { get; set; }\n\nOptional. The maximum amount of seconds to wait between retry attempts.\nThe value must be between 1 and 600. The default value for this field\nis 60.\n\n### MinRetryDelay\n\n public Duration MinRetryDelay { get; set; }\n\nOptional. The minimum amount of seconds to wait between retry attempts.\nThe value must be between 1 and 600. The default value for this field\nis 5."]]