public sealed class Runnable.Types.Barrier : IMessage<Runnable.Types.Barrier>, IEquatable<Runnable.Types.Barrier>, IDeepCloneable<Runnable.Types.Barrier>, IBufferMessage, IMessage
Reference documentation and code samples for the Batch v1alpha API class Runnable.Types.Barrier.
A barrier runnable automatically blocks the execution of subsequent
runnables until all the tasks in the task group reach the barrier.
[[["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 document provides reference documentation for the \u003ccode\u003eRunnable.Types.Barrier\u003c/code\u003e class within the Google Cloud Batch v1alpha API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRunnable.Types.Barrier\u003c/code\u003e class is a sealed class that implements interfaces for message handling, equality checks, deep cloning, and buffer management.\u003c/p\u003e\n"],["\u003cp\u003eA barrier runnable is designed to pause subsequent runnables until all tasks within its task group have reached the barrier.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from the base \u003ccode\u003eobject\u003c/code\u003e class and includes inherited members such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, one default and one that accepts another instance of \u003ccode\u003eRunnable.Types.Barrier\u003c/code\u003e to allow for the creation of new barrier instances, and a name property that is set as a string.\u003c/p\u003e\n"]]],[],null,["# Batch v1alpha API - Class Runnable.Types.Barrier (1.0.0-alpha31)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-alpha31 (latest)](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.Runnable.Types.Barrier)\n- [1.0.0-alpha30](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/1.0.0-alpha30/Google.Cloud.Batch.V1Alpha.Runnable.Types.Barrier) \n\n public sealed class Runnable.Types.Barrier : IMessage\u003cRunnable.Types.Barrier\u003e, IEquatable\u003cRunnable.Types.Barrier\u003e, IDeepCloneable\u003cRunnable.Types.Barrier\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Batch v1alpha API class Runnable.Types.Barrier.\n\nA barrier runnable automatically blocks the execution of subsequent\nrunnables until all the tasks in the task group reach the barrier. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Runnable.Types.Barrier \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Runnable](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.Runnable)[Types](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.Runnable.Types)[Barrier](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.Runnable.Types.Barrier), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Runnable](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.Runnable)[Types](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.Runnable.Types)[Barrier](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.Runnable.Types.Barrier), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Runnable](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.Runnable)[Types](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.Runnable.Types)[Barrier](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha.Runnable.Types.Barrier), [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.V1Alpha](/dotnet/docs/reference/Google.Cloud.Batch.V1Alpha/latest/Google.Cloud.Batch.V1Alpha)\n\nAssembly\n--------\n\nGoogle.Cloud.Batch.V1Alpha.dll\n\nConstructors\n------------\n\n### Barrier()\n\n public Barrier()\n\n### Barrier(Barrier)\n\n public Barrier(Runnable.Types.Barrier other)\n\nProperties\n----------\n\n### Name\n\n public string Name { get; set; }\n\nBarriers are identified by their index in runnable list.\nNames are not required, but if present should be an identifier."]]