2.8.0 (latest) 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.3.0 1.2.0 1.1.0

    public sealed class FailurePolicy : IMessage<FailurePolicy>, IEquatable<FailurePolicy>, IDeepCloneable<FailurePolicy>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Functions v1 API class FailurePolicy.

Describes the policy in case of function's execution failure.
If empty, then defaults to ignoring failures (i.e. not retrying them).

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> FailurePolicy

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[FailurePolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.FailurePolicy.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[FailurePolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.FailurePolicy.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[FailurePolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.FailurePolicy.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Functions.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Functions.V1/latest/Google.Cloud.Functions.V1.md.txt)

## Assembly

Google.Cloud.Functions.V1.dll

## Constructors

### FailurePolicy()

    public FailurePolicy()

### FailurePolicy(FailurePolicy)

    public FailurePolicy(FailurePolicy other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `FailurePolicy` |

## Properties

### ActionCase

    public FailurePolicy.ActionOneofCase ActionCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `FailurePolicyActionOneofCase` |   |

### Retry

    public FailurePolicy.Types.Retry Retry { get; set; }

If specified, then the function will be retried in case of a failure.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `FailurePolicyTypesRetry` |   |