Class FailurePolicy (2.57.0)

publicfinalclass FailurePolicyextendsGeneratedMessageV3implementsFailurePolicyOrBuilder

Describes the policy in case of function's execution failure. If empty, then defaults to ignoring failures (i.e. not retrying them).

Protobuf type google.cloud.functions.v1.FailurePolicy

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

RETRY_FIELD_NUMBER

publicstaticfinalintRETRY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticFailurePolicygetDefaultInstance()
Returns
Type Description
FailurePolicy

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticFailurePolicy.BuildernewBuilder()
Returns
Type Description
FailurePolicy.Builder

newBuilder(FailurePolicy prototype)

publicstaticFailurePolicy.BuildernewBuilder(FailurePolicyprototype)
Parameter
Name Description
prototype FailurePolicy
Returns
Type Description
FailurePolicy.Builder

parseDelimitedFrom(InputStream input)

publicstaticFailurePolicyparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
FailurePolicy
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticFailurePolicyparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FailurePolicy
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticFailurePolicyparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
FailurePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticFailurePolicyparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FailurePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticFailurePolicyparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
FailurePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticFailurePolicyparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FailurePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticFailurePolicyparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
FailurePolicy
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticFailurePolicyparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FailurePolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticFailurePolicyparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
FailurePolicy
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticFailurePolicyparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FailurePolicy
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticFailurePolicyparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
FailurePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticFailurePolicyparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FailurePolicy
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<FailurePolicy>parser()
Returns
Type Description
Parser<FailurePolicy>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getActionCase()

publicFailurePolicy.ActionCasegetActionCase()
Returns
Type Description
FailurePolicy.ActionCase

getDefaultInstanceForType()

publicFailurePolicygetDefaultInstanceForType()
Returns
Type Description
FailurePolicy

getParserForType()

publicParser<FailurePolicy>getParserForType()
Returns
Type Description
Parser<FailurePolicy>
Overrides

getRetry()

publicFailurePolicy.RetrygetRetry()

If specified, then the function will be retried in case of a failure.

.google.cloud.functions.v1.FailurePolicy.Retry retry = 1;

Returns
Type Description
FailurePolicy.Retry

The retry.

getRetryOrBuilder()

publicFailurePolicy.RetryOrBuildergetRetryOrBuilder()

If specified, then the function will be retried in case of a failure.

.google.cloud.functions.v1.FailurePolicy.Retry retry = 1;

Returns
Type Description
FailurePolicy.RetryOrBuilder

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasRetry()

publicbooleanhasRetry()

If specified, then the function will be retried in case of a failure.

.google.cloud.functions.v1.FailurePolicy.Retry retry = 1;

Returns
Type Description
boolean

Whether the retry field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicFailurePolicy.BuildernewBuilderForType()
Returns
Type Description
FailurePolicy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedFailurePolicy.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
FailurePolicy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicFailurePolicy.BuildertoBuilder()
Returns
Type Description
FailurePolicy.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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月30日 UTC.