# Google Cloud Eventarc V1 Client - Class RetryPolicy (2.3.1)

2.3.1 (latest) 2.3.0 2.2.1 2.1.5 2.0.1 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Eventarc V1 Client class RetryPolicy.

The retry policy configuration for the Trigger.

Can only be set with Cloud Run destinations.

Generated from protobuf message `google.cloud.eventarc.v1.Trigger.RetryPolicy`

## Namespace

Google \\ Cloud \\ Eventarc \\ V1 \\ Trigger

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ max_attempts` | `int` Optional. The maximum number of delivery attempts for any message. The only valid value is 1. |

### getMaxAttempts

Optional. The maximum number of delivery attempts for any message. The
only valid value is 1.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setMaxAttempts

Optional. The maximum number of delivery attempts for any message. The
only valid value is 1.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |