Class FailurePolicy.Builder (2.4.3)

publicstaticfinalclass FailurePolicy.BuilderextendsGeneratedMessageV3.Builder<FailurePolicy.Builder>implementsFailurePolicyOrBuilder

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

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicFailurePolicy.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

build()

publicFailurePolicybuild()
Returns
Type Description

buildPartial()

publicFailurePolicybuildPartial()
Returns
Type Description

clear()

publicFailurePolicy.Builderclear()
Returns
Type Description
Overrides

clearAction()

publicFailurePolicy.BuilderclearAction()
Returns
Type Description

clearField(Descriptors.FieldDescriptor field)

publicFailurePolicy.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicFailurePolicy.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
Overrides

clearRetry()

publicFailurePolicy.BuilderclearRetry()

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

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

Returns
Type Description

clone()

publicFailurePolicy.Builderclone()
Returns
Type Description
Overrides

getActionCase()

publicFailurePolicy.ActionCasegetActionCase()
Returns
Type Description

getDefaultInstanceForType()

publicFailurePolicygetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
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.

getRetryBuilder()

publicFailurePolicy.Retry.BuildergetRetryBuilder()

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

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

Returns
Type Description

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

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.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeFrom(FailurePolicy other)

publicFailurePolicy.BuildermergeFrom(FailurePolicyother)
Parameter
Name Description
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicFailurePolicy.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

publicFailurePolicy.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Overrides

mergeRetry(FailurePolicy.Retry value)

publicFailurePolicy.BuildermergeRetry(FailurePolicy.Retryvalue)

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

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

Parameter
Name Description
Returns
Type Description

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalFailurePolicy.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicFailurePolicy.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicFailurePolicy.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
index int
value Object
Returns
Type Description
Overrides

setRetry(FailurePolicy.Retry value)

publicFailurePolicy.BuildersetRetry(FailurePolicy.Retryvalue)

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

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

Parameter
Name Description
Returns
Type Description

setRetry(FailurePolicy.Retry.Builder builderForValue)

publicFailurePolicy.BuildersetRetry(FailurePolicy.Retry.BuilderbuilderForValue)

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

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

Parameter
Name Description
builderForValue FailurePolicy.Retry.Builder
Returns
Type Description

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalFailurePolicy.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

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.