Class MethodSettings.Types.LongRunning (2.17.0)
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).
Inheritance
object >
MethodSettings.Types.LongRunning
Namespace
Google.Api
Assembly
Google.Api.CommonProtos.dll
Constructors
LongRunning()
LongRunning(LongRunning)
public LongRunning(MethodSettings.Types.LongRunning other)
Fields
InitialPollDelayFieldNumber
public const int InitialPollDelayFieldNumber = 1
Field number for the "initial_poll_delay" field.
Field Value |
Type |
Description |
int |
|
MaxPollDelayFieldNumber
public const int MaxPollDelayFieldNumber = 3
Field number for the "max_poll_delay" field.
Field Value |
Type |
Description |
int |
|
PollDelayMultiplierFieldNumber
public const int PollDelayMultiplierFieldNumber = 2
Field number for the "poll_delay_multiplier" field.
Field Value |
Type |
Description |
int |
|
TotalPollTimeoutFieldNumber
public const int TotalPollTimeoutFieldNumber = 4
Field number for the "total_poll_timeout" field.
Field Value |
Type |
Description |
int |
|
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
InitialPollDelay
public Duration InitialPollDelay { get; set; }
Initial delay after which the first poll request will be made.
Default value: 5 seconds.
Property Value |
Type |
Description |
Duration |
|
MaxPollDelay
public Duration MaxPollDelay { get; set; }
Maximum time between two subsequent poll requests.
Default value: 45 seconds.
Property Value |
Type |
Description |
Duration |
|
Parser
public static MessageParser<MethodSettings.Types.LongRunning> Parser { get; }
PollDelayMultiplier
public float PollDelayMultiplier { get; set; }
Multiplier to gradually increase delay between subsequent polls until it
reaches max_poll_delay.
Default value: 1.5.
Property Value |
Type |
Description |
float |
|
TotalPollTimeout
public Duration TotalPollTimeout { get; set; }
Total polling timeout.
Default value: 5 minutes.
Property Value |
Type |
Description |
Duration |
|
Methods
CalculateSize()
public int CalculateSize()
Returns |
Type |
Description |
int |
|
Clone()
public MethodSettings.Types.LongRunning Clone()
Equals(LongRunning)
public bool Equals(MethodSettings.Types.LongRunning other)
Returns |
Type |
Description |
bool |
|
Equals(object)
public override bool Equals(object other)
Parameter |
Name |
Description |
other |
object
|
Returns |
Type |
Description |
bool |
|
Overrides
GetHashCode()
public override int GetHashCode()
Returns |
Type |
Description |
int |
|
Overrides
MergeFrom(LongRunning)
public void MergeFrom(MethodSettings.Types.LongRunning other)
public void MergeFrom(CodedInputStream input)
ToString()
public override string ToString()
Returns |
Type |
Description |
string |
|
Overrides
WriteTo(CodedOutputStream)
public void WriteTo(CodedOutputStream output)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-10 UTC.
[[["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-10-10 UTC."],[],[]]