Class FailurePolicy.Retry (2.55.0)

public static final class FailurePolicy.Retry extends GeneratedMessageV3 implements FailurePolicy.RetryOrBuilder

Describes the retry policy in case of function's execution failure. A function execution will be retried on any failure. A failed execution will be retried up to 7 days with an exponential backoff (capped at 10 seconds). Retried execution is charged as any other execution.

Protobuf type google.cloud.functions.v1.FailurePolicy.Retry

Static Methods

getDefaultInstance()

public static FailurePolicy.Retry getDefaultInstance()
Returns
Type Description
FailurePolicy.Retry

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static FailurePolicy.Retry.Builder newBuilder()
Returns
Type Description
FailurePolicy.Retry.Builder

newBuilder(FailurePolicy.Retry prototype)

public static FailurePolicy.Retry.Builder newBuilder(FailurePolicy.Retry prototype)
Parameter
Name Description
prototype FailurePolicy.Retry
Returns
Type Description
FailurePolicy.Retry.Builder

parseDelimitedFrom(InputStream input)

public static FailurePolicy.Retry parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FailurePolicy.Retry
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FailurePolicy.Retry parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FailurePolicy.Retry
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static FailurePolicy.Retry parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
FailurePolicy.Retry
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FailurePolicy.Retry parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FailurePolicy.Retry
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FailurePolicy.Retry parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
FailurePolicy.Retry
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FailurePolicy.Retry parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FailurePolicy.Retry
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FailurePolicy.Retry parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
FailurePolicy.Retry
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FailurePolicy.Retry parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FailurePolicy.Retry
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static FailurePolicy.Retry parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FailurePolicy.Retry
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FailurePolicy.Retry parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FailurePolicy.Retry
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static FailurePolicy.Retry parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
FailurePolicy.Retry
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FailurePolicy.Retry parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FailurePolicy.Retry
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<FailurePolicy.Retry> parser()
Returns
Type Description
Parser<Retry>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public FailurePolicy.Retry getDefaultInstanceForType()
Returns
Type Description
FailurePolicy.Retry

getParserForType()

public Parser<FailurePolicy.Retry> getParserForType()
Returns
Type Description
Parser<Retry>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public FailurePolicy.Retry.Builder newBuilderForType()
Returns
Type Description
FailurePolicy.Retry.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FailurePolicy.Retry.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
FailurePolicy.Retry.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public FailurePolicy.Retry.Builder toBuilder()
Returns
Type Description
FailurePolicy.Retry.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException