Class FailurePolicy.Retry (2.36.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 is retried on any failure. A failed execution is 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
TypeDescription
FailurePolicy.Retry

getDescriptor()

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

newBuilder()

public static FailurePolicy.Retry.Builder newBuilder()
Returns
TypeDescription
FailurePolicy.Retry.Builder

newBuilder(FailurePolicy.Retry prototype)

public static FailurePolicy.Retry.Builder newBuilder(FailurePolicy.Retry prototype)
Parameter
NameDescription
prototypeFailurePolicy.Retry
Returns
TypeDescription
FailurePolicy.Retry.Builder

parseDelimitedFrom(InputStream input)

public static FailurePolicy.Retry parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FailurePolicy.Retry
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static FailurePolicy.Retry parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
FailurePolicy.Retry
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static FailurePolicy.Retry parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
FailurePolicy.Retry
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static FailurePolicy.Retry parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FailurePolicy.Retry
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static FailurePolicy.Retry parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
FailurePolicy.Retry
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public FailurePolicy.Retry getDefaultInstanceForType()
Returns
TypeDescription
FailurePolicy.Retry

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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 FailurePolicy.Retry.Builder newBuilderForType()
Returns
TypeDescription
FailurePolicy.Retry.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FailurePolicy.Retry.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
FailurePolicy.Retry.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public FailurePolicy.Retry.Builder toBuilder()
Returns
TypeDescription
FailurePolicy.Retry.Builder

writeTo(CodedOutputStream output)

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