public sealed class MethodSettings.Types.LongRunning : IMessage<MethodSettings.Types.LongRunning>, IEquatable<MethodSettings.Types.LongRunning>, IDeepCloneable<MethodSettings.Types.LongRunning>, IBufferMessage, IMessage
Describes settings to use when generating API methods that use the
long-running operation pattern.
All default values below are from those used in the client library
generators (e.g.
Java).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eMethodSettings.Types.LongRunning\u003c/code\u003e class defines settings for API methods that utilize the long-running operation pattern, with default values derived from client library generators.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eLongRunning\u003c/code\u003e class include \u003ccode\u003eInitialPollDelay\u003c/code\u003e, \u003ccode\u003eMaxPollDelay\u003c/code\u003e, \u003ccode\u003ePollDelayMultiplier\u003c/code\u003e, and \u003ccode\u003eTotalPollTimeout\u003c/code\u003e, which control the timing and frequency of polling for long-running operations.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides methods for cloning, merging, and calculating the size of messages, along with overrides for \u003ccode\u003eEquals\u003c/code\u003e, \u003ccode\u003eGetHashCode\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eConstructors are available for creating instances of the \u003ccode\u003eLongRunning\u003c/code\u003e class, either as a new object or by copying an existing \u003ccode\u003eLongRunning\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# Class MethodSettings.Types.LongRunning (2.17.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.0 (latest)](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MethodSettings.Types.LongRunning)\n- [2.15.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.15.0/Google.Api.MethodSettings.Types.LongRunning)\n- [2.10.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.10.0/Google.Api.MethodSettings.Types.LongRunning)\n- [2.2.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.2.0/Google.Api.MethodSettings.Types.LongRunning) \n\n public sealed class MethodSettings.Types.LongRunning : IMessage\u003cMethodSettings.Types.LongRunning\u003e, IEquatable\u003cMethodSettings.Types.LongRunning\u003e, IDeepCloneable\u003cMethodSettings.Types.LongRunning\u003e, IBufferMessage, IMessage\n\nDescribes settings to use when generating API methods that use the\nlong-running operation pattern.\nAll default values below are from those used in the client library\ngenerators (e.g.\n[Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e MethodSettings.Types.LongRunning \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[MethodSettings](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MethodSettings)[Types](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MethodSettings.Types)[LongRunning](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MethodSettings.Types.LongRunning), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MethodSettings](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MethodSettings)[Types](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MethodSettings.Types)[LongRunning](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MethodSettings.Types.LongRunning), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MethodSettings](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MethodSettings)[Types](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MethodSettings.Types)[LongRunning](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api.MethodSettings.Types.LongRunning), [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.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals)\n\nNamespace\n---------\n\n[Google.Api](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Api)\n\nAssembly\n--------\n\nGoogle.Api.CommonProtos.dll\n\nConstructors\n------------\n\n### LongRunning()\n\n public LongRunning()\n\n### LongRunning(LongRunning)\n\n public LongRunning(MethodSettings.Types.LongRunning other)\n\nFields\n------\n\n### InitialPollDelayFieldNumber\n\n public const int InitialPollDelayFieldNumber = 1\n\nField number for the \"initial_poll_delay\" field.\n\n### MaxPollDelayFieldNumber\n\n public const int MaxPollDelayFieldNumber = 3\n\nField number for the \"max_poll_delay\" field.\n\n### PollDelayMultiplierFieldNumber\n\n public const int PollDelayMultiplierFieldNumber = 2\n\nField number for the \"poll_delay_multiplier\" field.\n\n### TotalPollTimeoutFieldNumber\n\n public const int TotalPollTimeoutFieldNumber = 4\n\nField number for the \"total_poll_timeout\" field.\n\nProperties\n----------\n\n### Descriptor\n\n public static MessageDescriptor Descriptor { get; }\n\n### InitialPollDelay\n\n public Duration InitialPollDelay { get; set; }\n\nInitial delay after which the first poll request will be made.\nDefault value: 5 seconds.\n\n### MaxPollDelay\n\n public Duration MaxPollDelay { get; set; }\n\nMaximum time between two subsequent poll requests.\nDefault value: 45 seconds.\n\n### Parser\n\n public static MessageParser\u003cMethodSettings.Types.LongRunning\u003e Parser { get; }\n\n### PollDelayMultiplier\n\n public float PollDelayMultiplier { get; set; }\n\nMultiplier to gradually increase delay between subsequent polls until it\nreaches max_poll_delay.\nDefault value: 1.5.\n\n### TotalPollTimeout\n\n public Duration TotalPollTimeout { get; set; }\n\nTotal polling timeout.\nDefault value: 5 minutes.\n\nMethods\n-------\n\n### CalculateSize()\n\n public int CalculateSize()\n\n### Clone()\n\n public MethodSettings.Types.LongRunning Clone()\n\n### Equals(LongRunning)\n\n public bool Equals(MethodSettings.Types.LongRunning other)\n\n### Equals(object)\n\n public override bool Equals(object other)\n\n**Overrides** \n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object))\n\n### GetHashCode()\n\n public override int GetHashCode()\n\n**Overrides** \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)\n\n### MergeFrom(LongRunning)\n\n public void MergeFrom(MethodSettings.Types.LongRunning other)\n\n### MergeFrom(CodedInputStream)\n\n public void MergeFrom(CodedInputStream input)\n\n### ToString()\n\n public override string ToString()\n\n**Overrides** \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\n### WriteTo(CodedOutputStream)\n\n public void WriteTo(CodedOutputStream output)"]]