# Google Cloud Functions V2 Client - Class RetryPolicy (2.1.3)

2.1.3 (latest) 2.1.2 2.0.6 1.7.0 1.6.5 1.5.0 1.4.2 1.3.1 1.2.0 1.1.2 1.0.3 Reference documentation and code samples for the Google Cloud Functions V2 Client class RetryPolicy.

Describes the retry policy in case of function's execution failure.

Retried execution is charged as any other execution.

Protobuf type `google.cloud.functions.v2.EventTrigger.RetryPolicy`

## Namespace

Google \\ Cloud \\ Functions \\ V2 \\ EventTrigger

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### RETRY_POLICY_UNSPECIFIED

    Value: 0

Not specified.

Generated from protobuf enum `RETRY_POLICY_UNSPECIFIED = 0;`

### RETRY_POLICY_DO_NOT_RETRY

    Value: 1

Do not retry.

Generated from protobuf enum `RETRY_POLICY_DO_NOT_RETRY = 1;`

### RETRY_POLICY_RETRY

    Value: 2

Retry on any failure, retry up to 7 days with an exponential backoff
(capped at 10 seconds).

Generated from protobuf enum `RETRY_POLICY_RETRY = 2;`