[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# gapic-common - Class Gapic::CallOptions::RetryPolicy (v1.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.0 (latest)](/ruby/docs/reference/gapic-common/latest/Gapic-CallOptions-RetryPolicy)\n- [1.0.1](/ruby/docs/reference/gapic-common/1.0.1/Gapic-CallOptions-RetryPolicy)\n- [0.26.0](/ruby/docs/reference/gapic-common/0.26.0/Gapic-CallOptions-RetryPolicy)\n- [0.25.0](/ruby/docs/reference/gapic-common/0.25.0/Gapic-CallOptions-RetryPolicy)\n- [0.24.0](/ruby/docs/reference/gapic-common/0.24.0/Gapic-CallOptions-RetryPolicy) \nReference documentation and code samples for the gapic-common class Gapic::CallOptions::RetryPolicy.\n\nThe policy for retrying failed RPC calls using an incremental backoff. A new object instance\nshould be used for every RpcCall invocation.\n\n\n\u003cbr /\u003e\n\nOnly errors originating from GRPC will be retried. \n\nInherits\n--------\n\n- [Gapic::Common::RetryPolicy](./Gapic-Common-RetryPolicy)\n\nMethods\n-------\n\n### #initialize\n\n def initialize(retry_codes: nil, initial_delay: nil, multiplier: nil, max_delay: nil) -\u003e RetryPolicy\n\nCreate new API Call RetryPolicy. \n**Parameters**\n\n- **retry_codes** (Array\\\u003cString\\|Numeric\\\u003e) *(defaults to: nil)* --- List of retry codes.\n- **initial_delay** (Numeric) *(defaults to: nil)* --- Initial delay in seconds.\n- **multiplier** (Numeric) *(defaults to: nil)* --- The delay scaling factor for each subsequent retry attempt.\n- **max_delay** (Numeric) *(defaults to: nil)* --- Maximum delay in seconds. \n**Returns**\n\n- ([RetryPolicy](./Gapic-CallOptions-RetryPolicy)) --- a new instance of RetryPolicy"]]