Class Pipeline.RetryPolicy (1.57.0)

public static final class Pipeline.RetryPolicy extends GeneratedMessageV3 implements Pipeline.RetryPolicyOrBuilder

The retry policy configuration for the Pipeline. The pipeline exponentially backs off in case the destination is non responsive or returns a retryable error code. The default semantics are as follows: The backoff starts with a 5 second delay and doubles the delay after each failed attempt (10 seconds, 20 seconds, 40 seconds, etc.). The delay is capped at 60 seconds by default. Please note that if you set the min_retry_delay and max_retry_delay fields to the same value this will make the duration between retries constant.

Protobuf type google.cloud.eventarc.v1.Pipeline.RetryPolicy

Static Fields

MAX_ATTEMPTS_FIELD_NUMBER

public static final int MAX_ATTEMPTS_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_RETRY_DELAY_FIELD_NUMBER

public static final int MAX_RETRY_DELAY_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_RETRY_DELAY_FIELD_NUMBER

public static final int MIN_RETRY_DELAY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Pipeline.RetryPolicy getDefaultInstance()
Returns
TypeDescription
Pipeline.RetryPolicy

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Pipeline.RetryPolicy.Builder newBuilder()
Returns
TypeDescription
Pipeline.RetryPolicy.Builder

newBuilder(Pipeline.RetryPolicy )

public static Pipeline.RetryPolicy.Builder newBuilder(Pipeline.RetryPolicy )
Parameter
NameDescription
Pipeline.RetryPolicy
Returns
TypeDescription
Pipeline.RetryPolicy.Builder

parseDelimitedFrom(InputStream input)

public static Pipeline.RetryPolicy parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Pipeline.RetryPolicy
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Pipeline.RetryPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Pipeline.RetryPolicy
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Pipeline.RetryPolicy parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Pipeline.RetryPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Pipeline.RetryPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Pipeline.RetryPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Pipeline.RetryPolicy parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Pipeline.RetryPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Pipeline.RetryPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Pipeline.RetryPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Pipeline.RetryPolicy parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Pipeline.RetryPolicy
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Pipeline.RetryPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Pipeline.RetryPolicy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Pipeline.RetryPolicy parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Pipeline.RetryPolicy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Pipeline.RetryPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Pipeline.RetryPolicy
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Pipeline.RetryPolicy parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Pipeline.RetryPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Pipeline.RetryPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Pipeline.RetryPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Pipeline.RetryPolicy> parser()
Returns
TypeDescription
Parser<RetryPolicy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Pipeline.RetryPolicy getDefaultInstanceForType()
Returns
TypeDescription
Pipeline.RetryPolicy

getMaxAttempts()

public int getMaxAttempts()

Optional. The maximum number of delivery attempts for any message. The value must be between 1 and 100. The default value for this field is 5.

int32 max_attempts = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The maxAttempts.

getMaxRetryDelay()

public Duration getMaxRetryDelay()

Optional. The maximum amount of seconds to wait between retry attempts. The value must be between 1 and 600. The default value for this field is 60.

.google.protobuf.Duration max_retry_delay = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Duration

The maxRetryDelay.

getMaxRetryDelayOrBuilder()

public DurationOrBuilder getMaxRetryDelayOrBuilder()

Optional. The maximum amount of seconds to wait between retry attempts. The value must be between 1 and 600. The default value for this field is 60.

.google.protobuf.Duration max_retry_delay = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DurationOrBuilder

getMinRetryDelay()

public Duration getMinRetryDelay()

Optional. The minimum amount of seconds to wait between retry attempts. The value must be between 1 and 600. The default value for this field is 5.

.google.protobuf.Duration min_retry_delay = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Duration

The minRetryDelay.

getMinRetryDelayOrBuilder()

public DurationOrBuilder getMinRetryDelayOrBuilder()

Optional. The minimum amount of seconds to wait between retry attempts. The value must be between 1 and 600. The default value for this field is 5.

.google.protobuf.Duration min_retry_delay = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DurationOrBuilder

getParserForType()

public Parser<Pipeline.RetryPolicy> getParserForType()
Returns
TypeDescription
Parser<RetryPolicy>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasMaxRetryDelay()

public boolean hasMaxRetryDelay()

Optional. The maximum amount of seconds to wait between retry attempts. The value must be between 1 and 600. The default value for this field is 60.

.google.protobuf.Duration max_retry_delay = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the maxRetryDelay field is set.

hasMinRetryDelay()

public boolean hasMinRetryDelay()

Optional. The minimum amount of seconds to wait between retry attempts. The value must be between 1 and 600. The default value for this field is 5.

.google.protobuf.Duration min_retry_delay = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the minRetryDelay field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Pipeline.RetryPolicy.Builder newBuilderForType()
Returns
TypeDescription
Pipeline.RetryPolicy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Pipeline.RetryPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Pipeline.RetryPolicy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Pipeline.RetryPolicy.Builder toBuilder()
Returns
TypeDescription
Pipeline.RetryPolicy.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException