public sealed class LifecyclePolicy.Types.ActionCondition : IMessage<LifecyclePolicy.Types.ActionCondition>, IEquatable<LifecyclePolicy.Types.ActionCondition>, IDeepCloneable<LifecyclePolicy.Types.ActionCondition>, IBufferMessage, IMessage
Reference documentation and code samples for the Batch v1 API class LifecyclePolicy.Types.ActionCondition.
Conditions for actions to deal with task failures.
Exit codes of a task execution.
If there are more than 1 exit codes,
when task executes with any of the exit code in the list,
the condition is met and the action will be executed.
[[["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\u003eThis webpage provides reference documentation for the \u003ccode\u003eLifecyclePolicy.Types.ActionCondition\u003c/code\u003e class within the Google Cloud Batch v1 API, detailing conditions for actions related to task failures.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLifecyclePolicy.Types.ActionCondition\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Cloud.Batch.V1\u003c/code\u003e namespace and is available across various versions, with the latest being 2.13.0.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, enhancing its functionality and compatibility within the .NET ecosystem.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties such as \u003ccode\u003eExitCodes\u003c/code\u003e, a \u003ccode\u003eRepeatedField<int>\u003c/code\u003e that lists exit codes triggering an action upon task execution, and provides constructors for creating \u003ccode\u003eActionCondition\u003c/code\u003e objects, including one for copying from another \u003ccode\u003eActionCondition\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe content of this page is also available for previous versions, going back to 1.0.0, with multiple intermediate versions.\u003c/p\u003e\n"]]],[],null,["# Batch v1 API - Class LifecyclePolicy.Types.ActionCondition (2.13.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.13.0 (latest)](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.LifecyclePolicy.Types.ActionCondition)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.12.0/Google.Cloud.Batch.V1.LifecyclePolicy.Types.ActionCondition)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.11.0/Google.Cloud.Batch.V1.LifecyclePolicy.Types.ActionCondition)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.10.0/Google.Cloud.Batch.V1.LifecyclePolicy.Types.ActionCondition)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.9.0/Google.Cloud.Batch.V1.LifecyclePolicy.Types.ActionCondition)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.8.0/Google.Cloud.Batch.V1.LifecyclePolicy.Types.ActionCondition)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.7.0/Google.Cloud.Batch.V1.LifecyclePolicy.Types.ActionCondition)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.6.0/Google.Cloud.Batch.V1.LifecyclePolicy.Types.ActionCondition)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.5.0/Google.Cloud.Batch.V1.LifecyclePolicy.Types.ActionCondition)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.4.0/Google.Cloud.Batch.V1.LifecyclePolicy.Types.ActionCondition)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.3.0/Google.Cloud.Batch.V1.LifecyclePolicy.Types.ActionCondition)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.2.0/Google.Cloud.Batch.V1.LifecyclePolicy.Types.ActionCondition)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.1.0/Google.Cloud.Batch.V1.LifecyclePolicy.Types.ActionCondition)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/2.0.0/Google.Cloud.Batch.V1.LifecyclePolicy.Types.ActionCondition)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/1.3.0/Google.Cloud.Batch.V1.LifecyclePolicy.Types.ActionCondition)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/1.2.0/Google.Cloud.Batch.V1.LifecyclePolicy.Types.ActionCondition)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/1.1.0/Google.Cloud.Batch.V1.LifecyclePolicy.Types.ActionCondition)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Batch.V1/1.0.0/Google.Cloud.Batch.V1.LifecyclePolicy.Types.ActionCondition) \n\n public sealed class LifecyclePolicy.Types.ActionCondition : IMessage\u003cLifecyclePolicy.Types.ActionCondition\u003e, IEquatable\u003cLifecyclePolicy.Types.ActionCondition\u003e, IDeepCloneable\u003cLifecyclePolicy.Types.ActionCondition\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Batch v1 API class LifecyclePolicy.Types.ActionCondition.\n\nConditions for actions to deal with task failures. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e LifecyclePolicy.Types.ActionCondition \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[LifecyclePolicy](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.LifecyclePolicy)[Types](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.LifecyclePolicy.Types)[ActionCondition](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.LifecyclePolicy.Types.ActionCondition), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[LifecyclePolicy](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.LifecyclePolicy)[Types](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.LifecyclePolicy.Types)[ActionCondition](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.LifecyclePolicy.Types.ActionCondition), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[LifecyclePolicy](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.LifecyclePolicy)[Types](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.LifecyclePolicy.Types)[ActionCondition](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1.LifecyclePolicy.Types.ActionCondition), [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.Batch.V1](/dotnet/docs/reference/Google.Cloud.Batch.V1/latest/Google.Cloud.Batch.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Batch.V1.dll\n\nConstructors\n------------\n\n### ActionCondition()\n\n public ActionCondition()\n\n### ActionCondition(ActionCondition)\n\n public ActionCondition(LifecyclePolicy.Types.ActionCondition other)\n\nProperties\n----------\n\n### ExitCodes\n\n public RepeatedField\u003cint\u003e ExitCodes { get; }\n\nExit codes of a task execution.\nIf there are more than 1 exit codes,\nwhen task executes with any of the exit code in the list,\nthe condition is met and the action will be executed."]]